Install Tenderdash
Using Dashmate (Recommended Method)
Dashmate is a part of the Dash Platform and provides a comprehensive solution for installing the entire platform. We highly recommend using Dashmate for a seamless and straightforward installation process.
For detailed instructions on how to set up a node using Dashmate, please refer to the official Dash documentation: Set Up a Node.
From Binary
To download pre-built binaries, see the releases page.
From Source
Install official go into the standard location with standard PATH updates:
curl https://webinstall.dev/go | sh
source ~/.config/envman/PATH.env
Install git, cmake, and build-essential (apt) or build-base (apk) and other libs.
For Debian-based (eg. Ubuntu):
sudo apt update
sudo apt install -y git build-essential cmake libgmp-dev
For Alpine Linux:
apk add --no-cache git build-base cmake gmp-dev gmp-static
Get the source code:
git clone https://github.com/dashpay/tenderdash.git
pushd ./tenderdash/
git submodule init
git submodule update
Check out the release tag required by your network before building. Development branches may contain changes that are not compatible with a deployed network.
Build:
to put the binary in $GOPATH/bin:
make install
to put the binary in ./build:
make build
The latest Tenderdash is now installed. You can verify the installation by running:
tenderdash version
Cross-compilation
To cross-compile for ARM platform, you need to install required compilers. On Ubuntu 20.04+:
sudo apt-get install gcc-10-arm-linux-gnueabi g++-10-arm-linux-gnueabi
To start the build process, execute:
GOOS=linux GOARCH=arm make
Run
To start a one-node blockchain with a simple in-process application:
tenderdash init validator
tenderdash start --proxy-app=kvstore
Reinstall
If you already have Tenderdash installed, and you make updates, simply
make install
To upgrade, fetch and check out the release tag required by your network, then
run make install. Coordinate consensus and application upgrades with the network.
Compile with CLevelDB support
Install LevelDB (minimum version is 1.7).
Install LevelDB with snappy (optionally). Below are commands for Ubuntu:
sudo apt-get update
sudo apt install build-essential
sudo apt-get install libsnappy-dev
wget https://github.com/google/leveldb/archive/v1.20.tar.gz && \
tar -zxvf v1.20.tar.gz && \
cd leveldb-1.20/ && \
make && \
sudo cp -r out-static/lib* out-shared/lib* /usr/local/lib/ && \
cd include/ && \
sudo cp -r leveldb /usr/local/include/ && \
sudo ldconfig && \
rm -f v1.20.tar.gz
Set a database backend to cleveldb:
# config/config.toml
db_backend = "cleveldb"
To install Tenderdash, run:
CGO_LDFLAGS="-lsnappy" make install TENDERMINT_BUILD_OPTIONS=cleveldb
or run:
CGO_LDFLAGS="-lsnappy" make build TENDERMINT_BUILD_OPTIONS=cleveldb
which puts the binary in ./build.