Upgrade proposal detected

Carbon Carbon

Carbon is a decentralized cross-chain financial protocol built atop of Cosmos-SDK. Engineered by Switcheo Labs, Carbon is designed specifically to support scalable and secure trading of derivatives and sophisticated financial instruments such as options, futures and bonds.

Carbon also acts as a building block for cross-chain DeFi by bridging the Cosmos and Ethereum ecosystems, allowing for cross-chain money markets and permissionless listing of tokens from IBC, EVM and non-EVM chains.

State sync

Basic information

RPC server:

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

Peer:

598d9d1bda28c7361908a8fcd7d35052490c66fd@carbon-rpc.p2p.brocha.in:30559

Stop the service and reset the data

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

Get and configure the state sync information

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

Restart the service and check the log

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