Skip to content

luqz/generate-libra-nodes

 
 

Repository files navigation

generate-libra-nodes Guide

中文版

Build libra source:

Now generate-libra-nodes could run with the master branch of libra.

Build libra commands that generate-libra-nodes need:

$ cargo build

PS: master version of generate-libra-nodes will be updated soon.

Install python3 rely:

sudo pip3 install sha3
sudo pip3 install mnemonic
sudo pip3 install pysha3
sudo apt install jq

Generate peer's seed

enter generate-libra-nodes directory:

$ cd generate-libra-nodes

create peer seed:

$ python ./create_seed.py

dda068eec093f40053d737564b8be5d6455f543330b745195379191e6e6bb03a

output dda068eec093f40053d737564b8be5d6455f543330b745195379191e6e6bb03a is the seed value

Setup 00_CONFIG.conf

    {
        "LIBRA_SOURCE": "\/home\/name\/new-libra\/libra",
        "NODE_NUM":2,
        "PEER_SEED":"7533ae4f06f4b590a7d4c1ef06ca59998fc5f2f20731e1295e441c36277d4e32"
    }
  • LIBRA_SOURCE: libra source directory
  • NODE_NUM: number of peer nodes
  • PEER_SEED: seed value created by create_seed.py on last step

Execute generate node command

$ generate_nodes.sh

The config' file of the generated node is in the nodes directory.

node-12ef71a8e1c51c4c5abaaabc7d76be85296dbed6632f8f6087d17bf24e24030c
node-3141d7ff54ea8318041447898eceaeea4cde1c344c6732d60b7d4bf231ebee19

Then transfer each node directory to the corresponding server, modify the configuration according to the README.md tutorial operation in the directory, and start the node.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 52.7%
  • Shell 47.3%