Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.34 KB

unjail.md

File metadata and controls

34 lines (25 loc) · 1.34 KB

Unjail tutorial

This command shows you how to unjail your local provider chain validator.

NOTE: If you are jailed, it may be because your provider node is down, or it may be because your consumer node is down. Downtime on the consumer will result in jailing on the provider because that's how interchain security works. Make sure both your nodes are back up otherwise you will be jailed again soon. Check the join testnet tutorial for a reference for the commands to get your nodes back up if you need it.

1. Submit unjail transaction

PROV_NODE_DIR=~/provider
PROV_CHAIN_ID=provider
PROV_KEY=provider-key


interchain-security-pd tx slashing unjail \
        --from ${PROV_KEY} \
        --keyring-backend test \
        --home $PROV_NODE_DIR \
        --chain-id $PROV_CHAIN_ID \
        -y -b block



2. Check the updated validator-sets
Check that you are not in the validator set again.

# Get validator consensus address
VALCONS_ADDR=$(interchain-security-pd tendermint show-address --home $PROV_NODE_DIR)
        
# Query the chains validator set
interchain-security-pd q tendermint-validator-set --home $PROV_NODE_DIR | grep -A11 $VALCONS_ADDR
  
interchain-security-cd q tendermint-validator-set --home $CONS_NODE_DIR | grep -A11 $VALCONS_ADDR