Update
sudo systemctl stop namadad
echo "export NAMADA_CHAIN_ID=shielded-expedition.b40d8e9055" >> $HOME/.bash_profile
source $HOME/.bash_profile
# Update or install rust
if command -v rustup &> /dev/null; then
rustup update
else
curl https://sh.rustup.rs -sSf | sh
source $HOME/.cargo/env
fi
rustc --version # Verify Rust installation by displaying the version
if [ ! -d ~/protobuf-3.12.0 ]; then
# Update the repositories
sudo apt-get install -y make git-core libssl-dev pkg-config libclang-12-dev build-essential protobuf-compiler
rm /usr/bin/protoc
cd $HOME && wget https://github.com/protocolbuffers/protobuf/releases/download/v3.12.0/protobuf-all-3.12.0.tar.gz
tar -xzvf protobuf-all-3.12.0.tar.gz
rm protobuf-all-3.12.0.tar.gz
cd protobuf-3.12.0
./configure
make
sudo make install
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
fi
cd $HOME && git clone https://github.com/anoma/namada.git
cd namada && git pull && git checkout v0.31.0
make install
cp ~/namada/target/release/namada* /usr/local/bin/
namada --version
namada client utils join-network --chain-id $NAMADA_CHAIN_ID
sed -i.bak -e "s%:26658%:${NAMADA_PORT}658%g;
s%:26657%:${NAMADA_PORT}657%g;
s%:26656%:${NAMADA_PORT}656%g;
s%:26545%:${NAMADA_PORT}545%g;
s%:8545%:${NAMADA_PORT}545%g;
s%:26660%:${NAMADA_PORT}660%g" ~/.local/share/namada/$NAMADA_CHAIN_ID/config.toml
sudo systemctl restart namadad && sudo journalctl -u namadad -f -o cat
# Recovery wallet
namada wallet key derive --alias wallet --hd-path default
Last updated
Was this helpful?