Skip to content

klever-io/kleverchain-localnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
    ]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published