RPC http://65.108.72.233:21657
NODE SETUP GUIDE VIA STATE SYNC
Install GO & Dependencies HERE
Install binaries
git clone https://github.com/NibiruChain/nibiru.git
cd nibiru
git checkout v0.15.0
make install
nibid init <node-name> --chain-id nibiru-testnet-1
CONFIG_TOML="$HOME/.nibid/config/config.toml"
sed -i 's/timeout_propose =.*/timeout_propose = "100ms"/g' $CONFIG_TOML
sed -i 's/timeout_propose_delta =.*/timeout_propose_delta = "500ms"/g' $CONFIG_TOML
sed -i 's/timeout_prevote =.*/timeout_prevote = "100ms"/g' $CONFIG_TOML
sed -i 's/timeout_prevote_delta =.*/timeout_prevote_delta = "500ms"/g' $CONFIG_TOML
sed -i 's/timeout_precommit =.*/timeout_precommit = "100ms"/g' $CONFIG_TOML
sed -i 's/timeout_precommit_delta =.*/timeout_precommit_delta = "500ms"/g' $CONFIG_TOML
sed -i 's/timeout_commit =.*/timeout_commit = "1s"/g' $CONFIG_TOML
sed -i 's/skip_timeout_commit =.*/skip_timeout_commit = false/g' $CONFIG_TOML
curl -s https://rpc.testnet-1.nibiru.fi/genesis | jq -r .result.genesis > $HOME/.nibid/config/genesis.json
#check genesis hash
sha256sum $HOME/.nibid/config/genesis.json
#should be: b58b61beb34f0d9e45ec2f1449f6600acef428b401976dc90edb9d586a412ed2
sudo tee /etc/systemd/system/nibid.service > /dev/null <<EOF
[Unit]
Description=nibid
After=network-online.target
[Service]
User=$USER
ExecStart=$(which nibid) start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable nibid
SNAP_RPC=http://65.108.72.233:21657; \
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash); \
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" $HOME/.nibid/config/config.toml; \
wget -O $HOME/.nibid/config/addrbook.json http://94.250.203.6:90/nibiru-addrbook.json
sudo systemctl restart nibid.service
DATA SNAPSHOT
#check snapshot height : curl -s http://94.250.203.6:90 | egrep -o ">nibiru-snap*.*tar" | tr -d ">"
snap=$(curl -s http://94.250.203.6:90 | egrep -o ">nibiru-snap*.*tar" | tr -d ">")
sudo systemctl stop nibid
mv $HOME/.nibid/data/priv_validator_state.json $HOME
rm-rf $HOME/.nibid/data
wget -P $HOME http://94.250.203.6:90/${snap}
tar xf $HOME/${snap} -C $HOME/.nibid
rm $HOME/${snap}
mv $HOME/priv_validator_state.json $HOME/.nibid/data
wget -O $HOME/.nibid/config/addrbook.json http://94.250.203.6:90/nibiru-addrbook.json
sudo systemctl restart nibid
journalctl -u nibid -f -o cat
GOOD LUCK!!!
AM Solutions © Copyright. All rights reserved.