Replace <moniker> with whatever you'd like to name your validator.
4. Edit Config
# Add seed peer to config.toml
sed -i 's/seeds = ""/seeds = "[email protected]:15556"/g' $HOME/.cantod/config/config.toml
# Set minimum gas price in app.toml
sed -i 's/minimum-gas-prices = "0acanto"/minimum-gas-prices = "0.0001acanto"/g' $HOME/.cantod/config/app.toml
5. Create systemd Service
Create the systemd service file:
sudo nano /etc/systemd/system/cantod.service
Copy and paste the following configuration and save:
If using a non-root user, set the User and WorkingDirectory parameters accordingly, e.g.:
User=alice
WorkingDirectory=/home/alice/
6. Start Node
# Reload service files
sudo systemctl daemon-reload
# Create the symlink
sudo systemctl enable cantod.service
# Start the node
sudo systemctl start cantod
# Show logs
journalctl -u cantod -f
You should then get several lines of log files, which may include an INVALIDARGUMENT error causing the service to exit. This is expected; Ctrl + C out and follow the next steps.
7. Sync Node
Unless you wish to run an archive node, you should sync your node to the current block using manual snapshots or state-sync snapshots.
Your validator wallet must contain a non-zero amount of native CANTO in order to send the validator transaction. To get some, follow these steps:
Run cantod debug addr $(cantod keys show <key_name> -a) to see your validator's Bech32 and 0x addresses.
Send funds from a Canto EVM wallet to the 0x address shown
Alternatively, ask a validator who already has native CANTO to send funds to the Bech32 Acc address.
9. Update Binary
Once your validating node is up-and-running, join the Canto Network Validator Announcements channel on Telegram to stay up-to-date with chain upgrades and other governance proposals.
In case of a binary upgrade, you will need to re-fetch the Canto repository and install the new binary before restarting your node:
git pull
git checkout v7.0.0
make install
# Don't forget to move the installed binary to your path
sudo mv $HOME/go/bin/cantod /usr/bin/
# Restart
sudo systemctl stop cantod.service
sudo systemctl start cantod.service