Local network generation
Here, you will learn how to launch a local network with custom settings, initial coins and rolls distribution.
This may be useful for instance if you want to build and test your integration on the latest version of the nodes.
git clone firstname.lastname@example.org:massalabs/massa.git
Compile it with the sandbox feature enabled:
cd massa && cargo build --release --features sandbox
Create a keypair in massa-client:
cd massa-client && cargo run
For the rest of the tutorial we will use theses abbreviations:
SECRETK: The secret you just generated
PUBK: The public key corresponding to SECRETK
ADDR: The address corresponding to PUBK
Setup your node to use the secret you just generated as its public key and staking key:
modify or create the file
modify the file
CLEAR and modify the file
CLEAR content of
optionally, if you need a non-standard configuration, you can modify the file
massa-node/base_config/config.tomldepending on what you are trying to do.
You can now launch your node:
cd massa-node && cargo run --features sandbox
On your client run the following command to add your secret key as staking key:
cd massa-client && cargo run node_start_staking ADDR
The local network and your node will start after 10 seconds. Once it is started, you can interact with it using the CLI client as you would with a node on a public network.