Installation
Install Dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install -y git gcc make unzip jq
Install GO if needed
ver="1.22.3"
cd $HOME
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile
source ~/.bash_profile
go version
Sett Vars
change MONIKER="Moniker"" with your own moniker and change TACHCAIN_PORT="14"" to your own port
echo "export WALLET="wallet"" >> $HOME/.bash_profile
echo "export MONIKER="Moniker"" >> $HOME/.bash_profile
echo "exportTACCHAIND_CHAIN_ID="tacchain_2391-1"" >> $HOME/.bash_profile
echo "exportTACCHAIND_PORT="14"" >> $HOME/.bash_profile
source $HOME/.bash_profile
Install Binary
cd $HOME
rm -rf tacchain
git clone https://github.com/TacBuild/tacchain.git
cd tacchain
git checkout v0.0.11
make install
Initialize Node
tacchaind init $MONIKER --chain-id.tacchaind-protocol-1
tacchaind config chain-id $TACCHAIND_CHAIN_ID
tacchaind config keyring-backend os
tacchaind config node tcp://localhost:${TACCHAIND_PORT}657
Download Genesis and Addrbook
curl -Ls "https://snapshot.nodevism.com/testnet/tacchain/genesis.json" > $HOME/.tacchaind/config/genesis.json
curl -Ls "https://snapshot.nodevism.com/testnet/tacchain/addrbook.json" > $HOME/.tacchaind/config/addrbook.json
Configure seed
SEEDS="a840f904e753880c6fe23c1ee7a6106517b0e58f.tacchaind.nodevism.com:29656,f94b1ad39835a9ce9fe9f6a83ca528d9be6ba276.tacchaind-mainnet.sychonix.com:12556"
PEERS="$(curl -sS https://rpc.tacchaind.nodevism.com/net_info | jq '.result.peers[] | "\(node_id: .node_info.id, address: .remote_ip, moniker: .node_info.moniker)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')"
sed -i -e "s|^seeds *=.*|seeds = '"$SEEDS"'|; s|^persistent_peers *=.*|persistent_peers = '"$PEERS"'|" $HOME/.tacchaind/config/config.toml
Configure Pruning
sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "17"|' \
$HOME/.tacchaind/config/app.toml
Sett gas price enable prometheus and disable indexing
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.001ahp\"|" $HOME/.tacchaind/config/app.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.tacchaind/config/config.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.tacchaind/config/config.toml
Costumize port in app.toml
sed -i.bak -e "s%:1317%:${TACCHAIND_PORT}317%g;
s%:8080%:${TACCHAIND_PORT}080%g;
s%:9090%:${TACCHAIND_PORT}090%g;
s%:9091%:${TACCHAIND_PORT}091%g;
s%:8545%:${TACCHAIND_PORT}545%g;
s%:8546%:${TACCHAIND_PORT}546%g;
s%:6065%:${TACCHAIND_PORT}065%g" $HOME/.tacchaind/config/app.toml
Costumize port in config.toml
sed -i.bak -e "s%:26658%:${TACCHAIND_PORT}658%g;
s%:26657%:${TACCHAIND_PORT}657%g;
s%:6060%:${TACCHAIND_PORT}060%g;
s%:26656%:${TACCHAIND_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${TACCHAIND_PORT}656\"%;
s%:26660%:${TACCHAIND_PORT}660%g" $HOME/.tacchaind/config/config.toml
Create service
sudo tee /etc/systemd/system/tacchaind.service > /dev/null <<EOF
[Unit]
Description=tacchaind node service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which tacchaind) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Download Snapshot
wait update
Enable Service and start node
sudo systemctl daemon-reload
sudo systemctl enable tacchaind.service
sudo systemctl restart tacchaind.service && sudo journalctl -u tacchaind.service -f --no-hostname -o cat
Last updated