Standalone Node Build
Initialize and start the Node
This section explains how to initialize and start a standalone full node for testing purposes.
Please ensure you have completed everything in Node Environment Preparation before you continue to create your node.
1. As root, navigate to the directory
sudo -i cd /var/lib/cudos/CudosBuilders/docker/full-node
2. Create a copy of
full-node.env.example, naming the copy
cp full-node.env.example full-node.client.mainnet.env
3. Open the file
- Set the
"MONIKER"(your node’s name on the blockchain) attribute to your desired name:
- Set the flag "SHOULD_USE_GLOBAL_PEERS" to true :
Exit and Save the file
4. Make sure that you are still in the correct directory
/var/lib/cudos/CudosBuilders/docker/full-node, and Initialize the node by running this command:
docker-compose --env-file full-node.client.mainnet.arg -f init-full-node.yml -p cudos-init-full-node-mainnet up --build
5. Start your node
docker-compose --env-file full-node.client.mainnet.arg -f start-full-node.yml -p cudos-start-full-node-mainnet up --build --detach
If all steps are completed successfully, you should see a newly generated file:
/var/lib/cudos/CudosData/cudos-start-full-node-mainnet/tendermint.nodeid that contains your node ID, consisting of a long string of random characters.
Syncing may take several hours. Refer to Checking sync status to verify your node is syncing.
Once your node is synced, you will be able to either:
- Use it as a Full Node. If you wish to send transactions from your node, you will need to create a wallet, fund it, and stash it in your node. Refer to Setting up your nodes wallet for instructions.
- Configure it as a Standalone Validator Node:
Standalone Validator Node
The standalone Validator node consists of a single full node running as a validator.
A full node becomes a validator when it has successfully staked CUDOS.
Before staking, you must create and fund your wallet, and stash it on your node by following the process described in Setting up your nodes wallet, making sure to use the Mainnet
Once this is completed, you can go ahead and stake CUDOS, which will make your node a validator, as described in Staking your Validator, making sure to use theMainnet