TENET NODE INSTALL
It is assumed that you have already upgraded your host and secured your ssh access and all ports.
We’re going to install the pre-requisites, then we’ll install and configure Go and finally we’ll install TENET NODE, configure it and run it from our snapshot.
Install pre-requisites
sudo apt update
sudo apt install git build-essential ufw curl jq lz4 --yes
Install Go
wget https://go.dev/dl/go1.20.2.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.20.2.linux-amd64.tar.gz
rm go1.20.2.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
cat <> ~/.profile
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source ~/.profile
go version
You will receive this response:
go version go1.20.2 linux/amd64
DOWNLOAD TENETD
wget https://github.com/tenet-org/tenet-mainnet/releases/download/v11.0.6/tenet-mainnet_11.0.6_Linux_amd64.tar.gz
tar -xvf tenet-mainnet_11.0.6_Linux_amd64.tar.gz
mkdir $HOME/go
mkdir $HOME/go/bin
mv $HOME/bin/tenetd $HOME/go/bin
tenetd version
You will receive this response:
11.2.1
INIT TENETD
# CHANGE$NODE_NAME
with “your node name”
tenetd config chain-id tenet_1559-1
tenetd init "$NODE_NAME" --chain-id tenet_1559-1
sed -i 's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.0026atenet"|g' $HOME/.tenetd/config/app.toml
Download Genesis, Addrbook, Snapshot and extract it
rm $HOME/.tenetd/config/genesis.json
wget https://snapshot.safeblock.space/tenet/genesis.json -P $HOME/.tenetd/config
wget https://snapshot.safeblock.space/tenet/addrbook.json -P $HOME/.tenetd/config
wget https://snapshot.safeblock.space/tenet/tenet-snapshot_03-12-2023.tar.lz4
lz4 -c -d tenet-snapshot_03-12-2023.tar.lz4 | tar -x -C $HOME/.tenetd
rm tenet-snapshot_03-12-2023.tar.lz4
CREATE TENETD SERVICE
# CHANGE $USER
with your “username”
sudo tee /etc/systemd/system/tenetd.service > /dev/null << EOF
[Unit]
Description=Tenet
After=network-online.target
[Service]
User=$USER
ExecStart=/home/$USER/go/bin/tenetd start
Restart=always
RestartSec=3
LimitNOFILE=10000
[Install]
WantedBy=multi-user.target
EOF
START TENET NODE
Enable tenetd:
sudo systemctl enable tenetd
Start tenetd in background:
sudo systemctl start tenetd
CHECK TENET NODE
sudo journalctl -fu tenetd -o cat
# Ctrl+C to exit
sudo journalctl -fu tenetd -o cat | grep index
# Ctrl+C to exit
curl -s http://0.0.0.0:26657/status | jq -r .result.sync_info.catching_up
If response is “true”, you not are synched, wait….
When response is “false”, your node are synched to Tenet Network