Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.09 KB

readme.md

File metadata and controls

61 lines (41 loc) · 1.09 KB

Kleverchain LocalNet

Requirements

  • Docker and Docker-compose
  • Python 3.X

Instructions

  1. Generate Keys

If you want more validators change the VALIDATORS_NUM const in Makefile

    make generate_keys
  1. Give permissions to keys if needed.

  2. Generate LocalNet configs and Docker-compose

    make create-localnet
  1. Generate logs and dbs folder
    make generate_dirs
  1. Give permissions to the logs and dbs folders if needed.

  2. Run docker-compose !!

    make compose-up
  1. 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"
    ]