Environment setup
If you don't want to build Namada from source you can install Namada from binaries
Export the following variables:
export NAMADA_TAG=v0.15.3
export TM_HASH=v0.1.4-abciplus
Installing Namada
-
Install all pre-requisites
-
Clone namada repository and checkout the correct versions
git clone https://github.com/anoma/namada && cd namada && git checkout $NAMADA_TAG
- Build binaries
make build-release
- There may be some additional requirements you may have to install (linux):
sudo apt-get update -y
sudo apt-get install build-essential make pkg-config libssl-dev libclang-dev -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Installing Tendermint
- Install the heliaxdev/tendermint fork
git clone https://github.com/heliaxdev/tendermint && cd tendermint && git checkout $TM_HASH
make build
The above requires that golang is correctly installed with the correct $PATH setup
2. Copy both the namada and tendermint binaries to somewhere on $PATH (or use the relative paths). This step may or may not be necessary.- namada binaries can be found in
/target/release
- tendermint is in
build/tendermint
Check ports
- Open ports on your machine:
- 26656
- 26657
- To check if ports are open you can setup a simple server and curl the port from another host
- Inside the namada folder, run
{ printf 'HTTP/1.0 200 OK\r\nContent-Length: %d\r\n\r\n' "$(wc -c < namada)"; cat namada; } | nc -l $PORT`
- From another host run one of the two commands:
nmap $IP -p$PORT
curl $IP:$PORT >/dev/null
Verifying your installation
- Make sure you are using the correct tendermint version
tendermint version
should output0.1.4-abciplus
- Make sure you are using the correct Namada version
namada --version
should outputNamada v0.15.3