Session
Calls
purgeKeys
Removes any session key(s) of the function caller.
This doesn't take effect until the next session.
The dispatch origin of this function must be Signed and the account must be either be convertible to a validator ID using the chain's typical addressing system (this usually means being a controller account) or directly convertible into a validator ID (which usually means being a stash account).
Namespace
Type
setKeys
Sets the session key(s) of the function caller to keys
. Allows an account to set its session key prior to becoming a validator. This doesn't take effect until the next session.
The dispatch origin of this function must be signed.
Namespace
Type
Storage
currentIndex
Current index of the session.
Namespace
Type
disabledValidators
Indices of disabled validators.
The vec is always kept sorted so that we can find whether a given validator is disabled using binary search. It gets cleared when on_session_ending
returns a new set of identities.
Namespace
Type
keyOwner
The owner of a key. The key is the KeyTypeId
+ the encoded key.
Namespace
Type
nextKeys
The next session keys for a validator.
Namespace
Type
queuedChanged
True if the underlying economic identities or weighting behind the validators has changed in the queued validator set.
Namespace
Type
queuedKeys
The queued keys for the next session. When the next session begins, these keys will be used to determine the validator's session keys.
Namespace
Type
validators
The current set of validators.
Namespace
Type
Events
NewSession
New session has happened. Note that the argument is the session index, not the block number as the type might suggest.
Namespace
Type
Errors
DuplicatedKey
Registered duplicate key.
Namespace
InvalidProof
Invalid ownership proof.
Namespace
NoAccount
Key setting account is not live, so it's impossible to associate keys.
Namespace
NoAssociatedValidatorId
No associated validator ID for account.
Namespace
NoKeys
No keys are associated with this account.
Namespace
undefined
Last updated