2.0 KiB
2.0 KiB
Run First Validator Node
Prerequisites
Generate mainnet genesis file
Run node
-
Update run-first-validator-vars.yml with required values:
- Use the mainnet genesis file generated in the previous step
# Private key of the existing account in hex format (required for gentx) pvt_key: "" # Path to the generated mainnet genesis file genesis_file: "<path-to-generated-genesis-file>" # Optional cerc_chain_id: "laconic-mainnet" cerc_moniker: "MainnetNode" min_gas_price: 0.001 cerc_loglevel: "info" key_name: "validator" -
Export the data directory and mainnet deployment directory as environment variables:
# Parent directory where the deployment directory will live export DATA_DIRECTORY= # Set mainnet deployment directory # for eg: mainnet-laconicd-deployment export MAINNET_DEPLOYMENT_DIR= -
Run ansible playbook to submit the gentx and run the node:
ansible-playbook -i localhost, -c local playbooks/first-validator/run-first-validator.yml -
Check logs to ensure that node is running:
laconic-so deployment --dir $DATA_DIRECTORY/$MAINNET_DEPLOYMENT_DIR logs laconicd -f
Publish Genesis File and Node Address
-
Copy the genesis file to genesis folder:
sudo cp $DATA_DIRECTORY/$MAINNET_DEPLOYMENT_DIR/data/laconicd-data/config/genesis.json ./genesis/mainnet-genesis.json -
Get your node's address:
laconic-so deployment --dir $DATA_DIRECTORY/$MAINNET_DEPLOYMENT_DIR exec laconicd 'echo $(laconicd cometbft show-node-id)@YOUR_PUBLIC_IP_ADDRESS:26656' -
Add your node's address to node-addresses.yml
-
Submit a PR with this genesis file and node address so that it is available to other validators