Sei Network (atlantic-1) Node Setup Via State Sync + Data snap

EXPLORER : https://explorer.theamsolutions.info/atlantic-1/staking

API : https://sei-api.theamsolutions.info   |   RPC  http://65.108.72.233:26557

 Original DOCS HERE

 
STEP BY STEP INSTRUCTIONS
 

Install GO and dependencies HERE

                                                                                                 Install binaries & Run node.

git clone https://github.com/sei-protocol/sei-chain.git \
&& cd sei-chain; git fetch --tags -f; git checkout 1.2.2beta-postfix \
&& make install && seid version --long | head
#should be version: 1.2.2beta-postfix  |  commit: 5f3f795fc612c796a83726a0bbb46658586ca8fe

seid init <NODE-NAME>  --chain-id atlantic-1

wget -O $HOME/.sei/config/genesis.json https://atlantic-1-regenesis.s3.us-west-1.amazonaws.com/genesis.json

echo "[Unit]
Description=Seid Node
After=network.target
#
[Service]
User=$USER
Type=simple
ExecStart=$(which seid) start
RestartSec=10
Restart=on-failure
LimitNOFILE=65535
#
[Install]
WantedBy=multi-user.target" > seid.service \
&& sudo cp seid.service /etc/systemd/system
 

STATE SYNC MODE

sudo systemctl stop seid.service; \
seid tendermint unsafe-reset-all --home $HOME/.sei

SNAP_RPC="http://65.108.72.233:26557"; \
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \
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/.sei/config/config.toml; \
wget -qO $HOME/.sei/config/addrbook.json http://94.250.203.6:90/sei-addrbook.json

sudo systemctl enable seid.service && sudo systemctl daemon-reload \
&& sudo systemctl restart seid; sudo journalctl -u seid -f -o cat

Use command below to switch off your State Sync mode, after node fully synced to avoid problems in future node restarts!

sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" $HOME/.sei/config/config.toml

 

DATA SNAPSHOT 

 

#check snapshot height  : curl -s http://94.250.203.6:90 | egrep -o ">sei-snap*.*tar" | tr -d ">"

snap=$(curl -s http://94.250.203.6:90 | egrep -o ">sei-snap*.*tar" | tr -d ">")
sudo systemctl stop seid
mv $HOME/.sei/data/priv_validator_state.json $HOME
rm -rf  $HOME/.sei/data $HOME/.sei/wasm
wget -P $HOME http://94.250.203.6:90/${snap}
tar xf $HOME/${snap} -C $HOME/.sei
rm $HOME/${snap}
mv $HOME/priv_validator_state.json $HOME/.sei/data
wget -q -O $HOME/.sei/config/addrbook.json http://94.250.203.6:90/sei-addrbook.json
sudo systemctl restart seid
journalctl -u seid -f -o cat
 

CREATE VALIDATOR

seid tx staking create-validator \
--amount=1000000usei \
--pubkey=$(seid tendermint show-validator) \
--moniker="<moniker>" \
--chain-id="atlantic-1" \
--commission-rate=0.1 \
--commission-max-rate=0.2 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1 \
--from <key-name>
 

GOOD LUCK!

AM Solutions © Copyright. All rights reserved.