PHP Blockchain from scratch with Smart Contracts
PoW sha3-256d + sha3-512
Total coins: Unlimited
Blocks every: Mainnet ?? (average) | Testnet: 5 sec (average)
- Time synchronized with NTP (NTP Pool) (How sync time)
- Open ports for p2p connection
- ReactPHP See more
- OpenSSL Windows: OpenSSL v1.1.1e
- MariaDB Server (Recommended with RocksDB Engine)
- OpenSSL See more
- PHP 7.3 or higher
- PHP Extensions:
- php_mysqli
- php_bcmath
Smart Contract Funity Compiler
- Clone repository
- Install react with composer
- composer require react/react:^1.0
- Create a MySQL database UTF8 RocksDB
- Edit CONFIG.php and set MySQL info & PHP Run command
- Navigate into bin folder and start node
For miner node:
./node_miner.sh
For viewer node:
./node_viewer.sh
ARGUMENT | Description |
---|---|
user <name> | Set the node name |
ip <ip> | Set the IP that the node will use |
port <port> | Set the port that the node will use |
miner | Activate mining mode |
testnet | Connect to TESTNET network |
sanity <num blocks to remove> | Sanity Blockchain |
Examples of use:
php client.php -u USER1 -ip 0.0.0.0 -port 6969
php client.php -u USER1 -ip 0.0.0.0 -port 6969 -testnet
php client.php -u USER1 -ip 0.0.0.0 -port 6969 -miner
php client.php -u USER1 -ip 0.0.0.0 -port 6969 -miner -testnet
php client.php -u USER1 -ip 0.0.0.0 -port 6969 -testnet -sanity 100
Examples of use:
php cli.php
Anyone is welcome to contribute to J4FCore! If you have a fix or code change, feel free to submit it as a pull request directly to the "master" branch.
Currency is still in early development phase, it may not be stable 100%
The mainnet has not yet been released.