Upgrade
Chain ID:
namada.5f5de2dd1b88cba30586420
Current Node Version:
v101.0.0
Prepare to Upgrade
warning
Do not use this guide until block 2176000 is reached
cd $HOME
sudo systemctl stop namadad
rm -rf namada
git clone https://github.com/anoma/namada
cd namada
git checkout v101.0.0
make build
sudo cp $HOME/namada/target/release/namad* /usr/local/bin/
wget https://raw.githubusercontent.com/anoma/namada/refs/heads/brent/mainnet-upgrade-pre-phase4/pre_phase4_migration.json
sha256sum pre_phase4_migration.json
# 83d7b4fc38f135adfae2f6219bf13c1bbf9022609fb61124be1ff0c5f79e1d7e
MIGRATION_HASH=83d7b4fc38f135adfae2f6219bf13c1bbf9022609fb61124be1ff0c5f79e1d7e
# create service file
sudo tee /etc/systemd/system/namadad.service > /dev/null <<EOF
[Unit]
Description=namada
After=network-online.target
[Service]
User=$USER
WorkingDirectory=$BASE_DIR
Environment=CMT_LOG_LEVEL=p2p:none,pex:error
Environment=NAMADA_CMT_STDOUT=true
ExecStart=$(which namada) node ledger run --path $HOME/pre_phase4_migration.json \
--hash 83d7b4fc38f135adfae2f6219bf13c1bbf9022609fb61124be1ff0c5f79e1d7e --height 2176020
StandardOutput=syslog
StandardError=syslog
Restart=always
RestartSec=10
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl restart namadad && sudo journalctl -u namadad -f
Verification
After the upgrade, verify that your node is running the correct version:
namada --version
Monitor the logs to ensure the upgrade was successful:
sudo journalctl -u namadad -f --no-hostname -o cat
Troubleshooting
If you encounter issues during the upgrade:
- Check service status:
sudo systemctl status namadad
- View detailed logs:
sudo journalctl -u namadad -f
- Verify migration file hash:
sha256sum $HOME/pre_phase4_migration.json
- Check if the upgrade height has been reached:
# Check current block height
curl -s http://localhost:26657/status | jq -r '.result.sync_info.latest_block_height'
Post-Upgrade
After successful upgrade:
- Verify node synchronization
- Check validator status (if applicable)
- Monitor performance and ensure stable operation
- Update any automation scripts to use the new version
Rollback (Emergency Only)
In case of critical issues, you may need to rollback:
sudo systemctl stop namadad
# Restore previous version binaries
# Restore previous service file
sudo systemctl start namadad
caution
Only perform rollback if absolutely necessary and consult with the Namada community first.