- Docker and Docker-compose
- Python 3.X
- Generate Keys
If you want more validators change the VALIDATORS_NUM const in Makefile
make generate_keys
-
Give permissions to keys if needed.
-
Generate LocalNet configs and Docker-compose
make create-localnet
- Generate logs and dbs folder
make generate_dirs
-
Give permissions to the logs and dbs folders if needed.
-
Run docker-compose !!
make compose-up
- Checking logs of node 0
docker logs --tail 5 -f node0
- if you want to change the genesis time, just change the startTime in nodesSetup.json after generate.
- if you want reset blockchain you can delete the dbs generated after you started the blockchain.
- if you want restart the node just add --start-in-sync to the node startup
command: [
"--log-level=*:INFO",
"--use-log-view",
"--validator-key-pem-file=./config/validatorKey.pem",
"--rest-api-interface=0.0.0.0:8800",
"--start-in-sync"
]