You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
You probably called rotate_session_keys while syncing and thus, did not get the correct session keys.
As the native side doesn't know anything about the session keys, we need to call into the runtime to generate them. However, if you are still not near the tip of the chain, this can lead to generating incorrect keys. This part of zeroing missing keys is there to not break the entire system when such a validator is active.
@wpank can say you something about tools that should help you to detect these mismatches with on chain state and what you have in your keystore.
Looking at some of the txs from the controller account, my guess is what happens when you submit a setKeys tx with session keys generated from when the chain isn't synced is it makes a failed tx (polkadot.js is pretty explicit about the tx failing saying duplicate key error). Once this happens it would set the keys on chain to 0x, where they're all null. You can then submit a validate tx and your validator will be able to be nominated / in the set.
Failed extrinsic: Extrinsic#5509292-2
Looking at the extrinsic, it seems that the transaction included 6 keys instead of 5.
When finally included in active validator set (era 394), the session key in session was zeroed out (matching the 6th key value of the extrinsic)
However, prior to that Polkadot JS displayed session keys in UI that were non-zero.
Forced chill command, rotate keys, and reset intention resulted in expected state.
2 things:
Session keys should never be string of all zeroes.
Failed extrinsics (especially set session key) should be detected on chain and prevent inclusion in active validator set.
The text was updated successfully, but these errors were encountered: