Upgrade proposal detected

Rebus Rebus

Welcome to Rebus, where TradFi and DeFi come hand in hand, an intersection bringing the two worlds together.

Investment in crypto assets is bound to grow, and naturally more people are turning to their traditional financial institutions expecting crypto services to be available. That’s where we come in, we'll assist in building the best crypto products possible for conventional financial establishments.

State sync

Basic information

RPC server:

https://rebus-rpc.brocha.in:443

Peer:

Stop the service and reset the data

sudo systemctl stop rebusd
cp $HOME/.rebusd/data/priv_validator_state.json $HOME/.rebusd/priv_validator_state.json.backup
rm -rf $HOME/.rebusd/data/*
mv $HOME/.rebusd/priv_validator_state.json.backup $HOME/.rebusd/data/priv_validator_state.json

Get and configure the state sync information

STATE_SYNC_RPC=https://rebus-rpc.brocha.in:443
STATE_SYNC_PEER=94b63fddfc78230f51aeb7ac34b9fb86bd042a77@rebus.p2p.brocha.in:30543
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/.rebusd/config/config.toml
sed -i.bak -e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$STATE_SYNC_RPC\"|" \
  $HOME/.rebusd/config/config.toml
sed -i.bak -e "s|^trust_height *=.*|trust_height = $SYNC_BLOCK_HEIGHT|" \
  $HOME/.rebusd/config/config.toml
sed -i.bak -e "s|^trust_hash *=.*|trust_hash = \"$SYNC_BLOCK_HASH\"|" \
  $HOME/.rebusd/config/config.toml
sed -i.bak -e "s|^persistent_peers *=.*|persistent_peers = \"$STATE_SYNC_PEER\"|" \
  $HOME/.rebusd/config/config.toml

Restart the service and check the log

sudo systemctl restart rebusd
sudo journalctl -u rebusd -f --no-hostname -o cat