The scripts will help the community to up and run Cere Nodes (Validator, Full). How to use details can be found in the Cere Gitbook.
Start validator node by running the following script: For MacOS
sh ./scripts/launch_validator_node.sh --node-name=TEST_NODE --network=testnet
For Linux / Ubunutu
bash ./scripts/launch_validator_node.sh --node-name=TEST_NODE --network=testnet
Parameter name | Required | Possible options | Example | Description |
---|---|---|---|---|
node-name | Yes | Any string. | --node-name=my-test-node |
A node name. |
network | Yes | testnet , testnet-dev |
--network=testnet |
A network name. |
generate-accounts | No | Any value. | --generate-accounts=1 |
If it is set, Stash and Controller accounts will be generated automatically and shared with user as a result. By default it will be taken from parameters. |
bond-value | No | Any number. | --bond-value=999 |
By default it will be taken from parameters. |
reward-commission | No | Any number in range 0 - 100. | --reward-commission=10 |
By default it will be taken from parameters. |
Clean created nodes by running the following script:
sh ./scripts/clean_validator_node.sh
- Generate accounts by running the following command (you can configure accounts amount in .env file):
docker-compose up -d generate_accounts
- Use ./accounts/public to update the chainSpec file.
- Confirm Genesis Nodes are up and running.
- Update Genesis Nodes IPs in insert-keys.sh.
- Insert keys by running the following command:
./scripts/insert-keys.sh
- Register N Validators by running the following command:
./scripts/register-validator.sh --domain={validator_node_domain} --id={id_from_accounts_folder}
- Store private data!
- Clean up private data by running the following command:
./scripts/remove-accounts.sh