Setup your node
Install pre requis
sudo apt-get update && sudo apt upgrade -y
sudo apt-get install make build-essential gcc git jq chrony -y
Install go
sudo rm -rf /usr/local/go
wget https://golang.org/dl/go1.19.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz
rm go1.19.1.linux-amd64.tar.gz
Install go
cd $HOME && rustup update
PROTOC_ZIP=protoc-23.3-linux-x86_64.zip
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v23.3/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
rm -f $PROTOC_ZIP
Setting up go
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
Install Node
Install the Namada-node
binary by running the following commands
#from $HOME dir
git clone https://github.com/anoma/namada.git
cd namada
git fetch
git checkout v0.23.1
make install
Install ComdeBFT
#from $HOME dir
git clone https://github.com/cometbft/cometbft.git
cd cometbft
git fetch
git checkout v0.37.2
make build
Copy binaries to /usr/local/bin
cd $HOME && cp $HOME/cometbft/build/cometbft /usr/local/bin/cometbft
cp $HOME/namada/target/release/namada /usr/local/bin/namada
cp $HOME/namada/target/release/namadac /usr/local/bin/namadac
cp $HOME/namada/target/release/namadan /usr/local/bin/namadan
cp $HOME/namada/target/release/namadaw /usr/local/bin/namadaw
cp $HOME/namada/target/release/namadar /usr/local/bin/namadar
To confirm that the node is well installed
namada version
#v0.23.1
To confirm that the ComeBFT is well installed
cometbft version
#v0.37.2
Setting up the Node
You can join the network with this command
namada client utils join-network --chain-id public-testnet-14.5d79b6958580
Setup service file
[Unit]
Description="namada node"
[Service]
User=USER
WorkingDirectory=/root/.local/share/namada/
Environment=NAMADA_LOG=debug
Environment=NAMADA_TM_STDOUT=true
ExecStart=/root/.cargo/bin/namada --base-dir=/root/.local/share/namada/ node ledger run
StandardOutput=syslog
StandardError=syslog
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
Start service file
systemctl daemon-reload
systemctl start namada.service | journalctl -u namada.service -f