terra-money / core

GO implementation of the Terra Protocol

Home Page:https://www.terra.money

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unjail not working

TaeGuNi opened this issue · comments

commented

unjail not working

r u using same account, as the transaction is not showing under your validator account ?
https://finder.terra.money/testnet/account/terra1whtftpu2tscz93a6apxju885rc05ju43whxdg3

commented

@awsdataarchitect Thank you for answer. I have only one accout in my test node.

I did follow that.

~ $ terrad tx slashing unjail --from <key_name> -y --chain-id=pisco-1 -b block --fees=30000uluna
Enter keyring passphrase:
code: 4
codespace: slashing
data: ""
events:
- attributes:
  - index: false
    key: c3BlbmRlcg==
    value: dGVycmExd2h0ZnRwdTJ0c2N6OTNhNmFweGp1ODg1cmMwNWp1NDN3aHhkZzM=
  - index: false
    key: YW1vdW50
    value: MzAwMDB1bHVuYQ==
  type: coin_spent
- attributes:
  - index: false
    key: cmVjZWl2ZXI=
    value: dGVycmExN3hwZnZha20yYW1nOTYyeWxzNmY4NHoza2VsbDhjNWxrYWVxZmE=
  - index: false
    key: YW1vdW50
    value: MzAwMDB1bHVuYQ==
  type: coin_received
- attributes:
  - index: false
    key: cmVjaXBpZW50
    value: dGVycmExN3hwZnZha20yYW1nOTYyeWxzNmY4NHoza2VsbDhjNWxrYWVxZmE=
  - index: false
    key: c2VuZGVy
    value: dGVycmExd2h0ZnRwdTJ0c2N6OTNhNmFweGp1ODg1cmMwNWp1NDN3aHhkZzM=
  - index: false
    key: YW1vdW50
    value: MzAwMDB1bHVuYQ==
  type: transfer
- attributes:
  - index: false
    key: c2VuZGVy
    value: dGVycmExd2h0ZnRwdTJ0c2N6OTNhNmFweGp1ODg1cmMwNWp1NDN3aHhkZzM=
  type: message
- attributes:
  - index: false
    key: ZmVl
    value: MzAwMDB1bHVuYQ==
  type: tx
- attributes:
  - index: false
    key: YWNjX3NlcQ==
    value: dGVycmExd2h0ZnRwdTJ0c2N6OTNhNmFweGp1ODg1cmMwNWp1NDN3aHhkZzMvNDg=
  type: tx
- attributes:
  - index: false
    key: c2lnbmF0dXJl
    value: dGlwWExwVFBOSiswUEZRT21IVjBlYS84RlBEUmFSbGpLeWwrMTV6cDRwSW5EOXJmLzR0Qnd5elFDL1Nqc05jcm1SUS9Lc0tzZGZZSnA5emxhb0srUXc9PQ==
  type: tx
gas_used: "61150"
gas_wanted: "200000"
height: "144533"
info: ""
logs: []
raw_log: 'failed to execute message; message index: 0: validator still jailed; cannot
  be unjailed'
timestamp: ""
tx: null
txhash: 3D62571595E12FA058786AD3510A9D0C690753BF1B4FABE6E87A2F0EA506C077

TX 3D62571595E12FA058786AD3510A9D0C690753BF1B4FABE6E87A2F0EA506C077 has message with validator_addr.

MsgUnjail

{"validator_addr": "terravaloper1whtftpu2tscz93a6apxju885rc05ju43wc2scz" }
commented
~ $terrad status 
{
"NodeInfo":{
"protocol_version":{
"p2p":"8",
"block":"11",
"app":"0"
},
"id":"7ff1587cab8a4638eed0da0cb37a046a2f985887",
"listen_addr":"59.9.85.163:26656",
"network":"pisco-1",
"version":"v0.34.19-terra.2",
"channels":"40202122233038606100",
"moniker":"lunatics",
"other":{
"tx_index":"on",
"rpc_address":"tcp://127.0.0.1:26657"
}
},
"SyncInfo":{
"latest_block_hash":"9FE14922EF4F9953B64E449C7BD5B0B912D42B097B5E62E95259FFBAE1FD6E05",
"latest_app_hash":"0897669D105BD6D0A55A11C5DD293230C62E2E3862417D9401B38168472F4774",
"latest_block_height":"144748",
"latest_block_time":"2022-06-02T00:31:28.953282846Z",
"earliest_block_hash":"F948EF10AA663D182309790C51E5A7A9125D7CF4D60D9E735994059DB7CAD4D4",
"earliest_app_hash":"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"earliest_block_height":"1",
"earliest_block_time":"2022-05-23T06:00:00Z",
"catching_up":false
},
"ValidatorInfo":{
"Address":"B89792E6A7A60FA8BDC2925FE3C43236948A9443",
"PubKey":{
"type":"tendermint/PubKeyEd25519",
"value":"NXwdFCAtwlW2SD0wgjTPBQatIt1nRyQXB7brdmJr/Yo="
},
"VotingPower":"0"
}
}
commented

What is wrong with the command below?

~ $ terrad tx slashing unjail --from <key_name> -y --chain-id=pisco-1 -b block --fees=30000uluna

The Terra docs page says:

terrad tx slashing unjail <terra> --chain-id=<chain_id> --from=<from>
  • <terra> is the address of your validator account.
  • <name> is the name of the validator account. To find this information, run terrad keys list.
    ::: {warning}
    If you don't wait for terrad to sync before running unjail, an error message will inform you that your validator is still jailed.
    :::

I'm not able to add <terra> with unjail command.

Any help would be appreciated.

dumb question but assuming you are replacing terra and <form>?

commented

I think there could be two problems.

cosmos-sdk/x/slashing/keeper/unjail.go#L49-L59

	if found {
		// cannot be unjailed if tombstoned
		if info.Tombstoned {
			return types.ErrValidatorJailed
		}


		// cannot be unjailed until out of jail
		if ctx.BlockHeader().Time.Before(info.JailedUntil) {
			return types.ErrValidatorJailed
		}
	}

So I checked the signing-info.

~ $ terrad q slashing signing-info '{"@type":"/cosmos.crypto.ed25519.PubKey","key":"NXwdFCAtwlW2SD0wgjTPBQatIt1nRyQXB7brdmJr/Yo="}'
address: terravalcons1hzte9e485c8630wzjf0783pjx62g49zrv2a34x
index_offset: "3783"
jailed_until: "9999-12-31T23:59:59Z"
missed_blocks_counter: "9"
start_height: "134228"
tombstoned: true

Why does my node's signing-info have below values?

"jailed_until" is "9999-12-31T23:59:59Z". And "tombstoned" is "true".

How can I change that?

unfortunately you cannot do anything for a "tombstoned" validator as you can see its jailed till 9999-12-31. it happens when same validator signs double blocks on two nodes for example.. only solution is to create new validator

commented

@awsdataarchitect Thank you for answer.