Chain ID | Latest Version Tag | Custom Port |
---|---|---|
namada.5f5de2dd1b88cba30586420 | v1.0.0 | 267 |
Namada project officially supports Ubuntu 22.04 and newer due to dependency on glibc v2.33+.
Download binaries
mkdir -p $HOME/.local/bin
curl -sL https://github.com/cometbft/cometbft/releases/download/v0.37.11/cometbft_0.37.11_linux_amd64.tar.gz | tar -C $HOME/.local/bin -xzf- cometbft
curl -sL https://github.com/anoma/namada/releases/download/v1.0.0/namada-v1.0.0-Linux-x86_64.tar.gz | tar -C $HOME/.local/bin -xzf- --strip-components=1 namada-v1.0.0-Linux-x86_64/{namada,namadac,namadan,namadaw}
Create SystemD service unit
sudo tee /etc/systemd/system/namada.service > /dev/null << EOF
[Unit]
Description=Namada node
After=network-online.target
[Service]
User=$USER
ExecStart=$HOME/.local/bin/namadan ledger run
Restart=always
RestartSec=10
LimitNOFILE=65535
Environment="CMT_LOG_LEVEL=p2p:none,pex:error"
Environment="NAMADA_CMT_STDOUT=true"
Environment="NAMADA_LOG=info"
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:$HOME/.local/bin"
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable namada.service
Initialize the node
export PATH=$HOME/.local/bin:$PATH
export NAMADA_NETWORK_CONFIGS_SERVER="https://github.com/anoma/namada-mainnet-genesis/releases/download/mainnet-genesis"
namadac utils join-network --chain-id namada.5f5de2dd1b88cba30586420 # --genesis-validator bengt
sed -i -e 's|^persistent_peers *=.*|persistent_peers = "tcp://d9bfa29e0cf9c4ce0cc9c26d98e5d97228f93b0b@namada.rpc.kjnodes.com:26756,tcp://05309c2cce2d163027a47c662066907e89cd6b99@104.251.123.123:26656,tcp://54386c1252ecabe5ba1fae2f083b37ca5ebd57dc@192.64.82.62:26656,tcp://2bf5cdd25975c239e8feb68153d69c5eec004fdb@64.118.250.82:46656"|' $HOME/.local/share/namada/namada.5f5de2dd1b88cba30586420/config.toml
sed -i -e 's|^seeds *=.*|seeds = "tcp://d9bfa29e0cf9c4ce0cc9c26d98e5d97228f93b0b@namada.rpc.kjnodes.com:26759"|' $HOME/.local/share/namada/namada.5f5de2dd1b88cba30586420/config.toml
export CUSTOM_PORT=267
sed -i \
-e "s|^proxy_app = \"tcp://127.0.0.1:26658\"|proxy_app = \"tcp://127.0.0.1:${CUSTOM_PORT}58\"|" \
-e "s|^laddr = \"tcp://127.0.0.1:26657\"|laddr = \"tcp://127.0.0.1:${CUSTOM_PORT}57\"|" \
-e "s|^laddr = \"tcp://0.0.0.0:26656\"|laddr = \"tcp://0.0.0.0:${CUSTOM_PORT}56\"|" \
-e "s|^prometheus_listen_addr = \":26660\"|prometheus_listen_addr = \":${CUSTOM_PORT}60\"|" \
$HOME/.local/share/namada/namada.5f5de2dd1b88cba30586420/config.toml
Download latest snapshot
cp $HOME/.local/share/namada/namada.5f5de2dd1b88cba30586420/cometbft/data/priv_validator_state.json $HOME/.local/share/namada/namada.5f5de2dd1b88cba30586420/priv_validator_state.json.backup
rm -rf $HOME/.local/share/namada/namada.5f5de2dd1b88cba30586420/cometbft/data $HOME/.local/share/namada/namada.5f5de2dd1b88cba30586420/db
curl -L https://snapshots.kjnodes.com/namada/snapshot_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.local/share/namada
mv $HOME/.local/share/namada/namada.5f5de2dd1b88cba30586420/priv_validator_state.json.backup $HOME/.local/share/namada/namada.5f5de2dd1b88cba30586420/cometbft/data/priv_validator_state.json
Start service and check the logs
sudo systemctl start namada.service && sudo journalctl -u namada.service -f --no-hostname -o cat