Upgrade proposal detected

Sei Devnet Sei Devnet

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:



[email protected]ha.in:30541

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

[email protected]net-rpc.p2p.brocha.in:30541
LATEST_HEIGHT=$(curl -s $STATE_SYNC_RPC/block | jq -r .result.block.header.height)
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\"|" \
sed -i.bak -e "s|^trust-height *=.*|trust-height = $SYNC_BLOCK_HEIGHT|" \
sed -i.bak -e "s|^trust-hash *=.*|trust-hash = \"$SYNC_BLOCK_HASH\"|" \
sed -i.bak -e "s|^bootstrap-peers *=.*|bootstrap-peers = \"$STATE_SYNC_PEER\"|" \
sed -i.bak -e "s|^use-p2p *=.*|use-p2p = true|" $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