Upgrade proposal detected
Sei Atlantic 1
A layer 1 blockchain with a built-in orderbook, enabling an entirely new echelon of DeFi products.
By combining both the orderbook infrastructure and the underlying chain, you can create brand new types of derivatives and options on Sei.
State sync
Basic information
RPC server:
https://sei-testnet-rpc.brocha.in:443
Peer:
94b63fddfc78230f51aeb7ac34b9fb86bd042a77@sei-testnet.p2p.brocha.in:30533
Stop the service and reset the data
sudo systemctl stop seid
cp $HOME/.sei/data/priv_validator_state.json $HOME/.sei/priv_validator_state.json.backup
rm -rf $HOME/.sei/data/*
mv $HOME/.sei/priv_validator_state.json.backup $HOME/.sei/data/priv_validator_state.json
Get and configure the state sync information
STATE_SYNC_RPC=https://sei-testnet-rpc.brocha.in:443
STATE_SYNC_PEER=94b63fddfc78230f51aeb7ac34b9fb86bd042a77@sei-testnet.p2p.brocha.in:30533
LATEST_HEIGHT=$(curl -s $STATE_SYNC_RPC/block | jq -r .result.block.header.height)
SYNC_BLOCK_HEIGHT=$(($LATEST_HEIGHT - 2000))
SYNC_BLOCK_HASH=$(curl -s "$STATE_SYNC_RPC/block?height=$SYNC_BLOCK_HEIGHT" | jq -r .result.block_id.hash)
sed -i.bak -e "s|^enable *=.*|enable = true|" $HOME/.sei/config/config.toml
sed -i.bak -e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$STATE_SYNC_RPC\"|" \
$HOME/.sei/config/config.toml
sed -i.bak -e "s|^trust_height *=.*|trust_height = $SYNC_BLOCK_HEIGHT|" \
$HOME/.sei/config/config.toml
sed -i.bak -e "s|^trust_hash *=.*|trust_hash = \"$SYNC_BLOCK_HASH\"|" \
$HOME/.sei/config/config.toml
sed -i.bak -e "s|^persistent_peers *=.*|persistent_peers = \"$STATE_SYNC_PEER\"|" \
$HOME/.sei/config/config.toml
Restart the service and check the log
sudo systemctl restart seid
sudo journalctl -u seid -f --no-hostname -o cat