Chain ID | Latest Version Tag | Custom Port |
---|---|---|
tududes-fragile.ba8b841cd08325 | v0.44.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/v0.44.0/namada-v0.44.0-Linux-x86_64.tar.gz | tar -C $HOME/.local/bin -xzf- --strip-components=1 namada-v0.44.0-Linux-x86_64/{namada,namadac,namadan,namadaw}
Create SystemD service unit
sudo tee /etc/systemd/system/namada-testnet.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-testnet.service
Initialize the node
export PATH=$HOME/.local/bin:$PATH
export NAMADA_NETWORK_CONFIGS_SERVER="https://testnet.namada.tududes.com/configs"
namadac utils join-network --chain-id tududes-fragile.ba8b841cd08325 # --genesis-validator bengt
sed -i -e 's|^persistent_peers *=.*|persistent_peers = "tcp://0744b560781754e902acfad362546819f998ba6b@namada-testnet.rpc.kjnodes.com:26756,tcp://e5cfbc8d61baf2602beda6ede15c0b290c942634@206.168.190.35:26656"|' $HOME/.local/share/namada/tududes-fragile.ba8b841cd08325/config.toml
sed -i -e 's|^seeds *=.*|seeds = "tcp://0744b560781754e902acfad362546819f998ba6b@namada-testnet.rpc.kjnodes.com:26759"|' $HOME/.local/share/namada/tududes-fragile.ba8b841cd08325/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/tududes-fragile.ba8b841cd08325/config.toml
Download latest snapshot
cp $HOME/.local/share/namada/tududes-fragile.ba8b841cd08325/cometbft/data/priv_validator_state.json $HOME/.local/share/namada/tududes-fragile.ba8b841cd08325/priv_validator_state.json.backup
rm -rf $HOME/.local/share/namada/tududes-fragile.ba8b841cd08325/cometbft/data $HOME/.local/share/namada/tududes-fragile.ba8b841cd08325/db
curl -L https://snapshots.kjnodes.com/namada-testnet/snapshot_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.local/share/namada
mv $HOME/.local/share/namada/tududes-fragile.ba8b841cd08325/priv_validator_state.json.backup $HOME/.local/share/namada/tududes-fragile.ba8b841cd08325/cometbft/data/priv_validator_state.json
Start service and check the logs
sudo systemctl start namada-testnet.service && sudo journalctl -u namada-testnet.service -f --no-hostname -o cat