Closed mitchellchou closed 2 years ago
Found problem is due to sdk using plain string comparison when managing the queue:
https://github.com/cosmos/cosmos-sdk/blob/d0043914ba7c37c3a0d7039d2c2a2aca6b38a93b/x/staking/keeper/validator.go#L357 https://github.com/cosmos/cosmos-sdk/blob/d0043914ba7c37c3a0d7039d2c2a2aca6b38a93b/x/staking/keeper/validator.go#L375
which might lead to failure to dequeue processed validators if there is mixed address prefix
the proposed hotfix is to silencing errors if we see that the queued validator is already in the desired state - unbonded or deleted (due to all delegations withdrew after unbonded):
Close via https://github.com/likecoin/likecoin-chain/pull/75 Chain back online on 2022-05-27T10:01:00.728507999Z at block height 4011381
Background
Reference