Grandpa
Calls
noteStalled
Note that the current authority set of the GRANDPA finality gadget has stalled.
This will trigger a forced authority set change at the beginning of the next session, to be enacted delay
blocks after that. The delay
should be high enough to safely assume that the block signalling the forced change will not be re-orged e.g. 1000 blocks. The block production rate (which may be slowed down because of finality lagging) should be taken into account when choosing the delay
. The GRANDPA voters based on the new authority will start voting on top of best_finalized_block_number
for new finalized blocks. best_finalized_block_number
should be the highest of the latest finalized block of all validators of the new authority set.
Note: Only callable by root.
Namespace
Type
reportEquivocation
Report voter equivocation/misbehavior. This method will verify the equivocation proof and validate the given key ownership proof against the extracted offender. If both are valid, the offence will be reported.
Namespace
Type
reportEquivocationUnsigned
Report voter equivocation/misbehavior. This method will verify the equivocation proof and validate the given key ownership proof against the extracted offender. If both are valid, the offence will be reported.
This extrinsic must be called unsigned and it is expected that only block authors will call it (validated in ValidateUnsigned
), as such if the block author is defined it will be defined as the equivocation reporter.
Namespace
Type
Storage
currentSetId
The number of changes (both in terms of keys and underlying economic responsibilities) in the "set" of Grandpa validators from genesis.
Namespace
Type
nextForced
next block number where we can force a change.
Namespace
Type
pendingChange
Pending change: (signaled at, scheduled change).
Namespace
Type
setIdSession
A mapping from grandpa set ID to the index of the most recent session for which its members were responsible.
TWOX-NOTE: SetId
is not under user control.
Namespace
Type
stalled
true
if we are currently stalled.
Namespace
Type
state
State of the current authority set.
Namespace
Type
Events
NewAuthorities
New authority set has been applied.
Namespace
Type
Paused
Current authority set has been paused.
Namespace
Type
Resumed
Current authority set has been resumed.
Namespace
Type
Errors
ChangePending
Attempt to signal GRANDPA change with one already pending.
Namespace
DuplicateOffenceReport
A given equivocation report is valid but already previously reported.
Namespace
InvalidEquivocationProof
An equivocation proof provided as part of an equivocation report is invalid.
Namespace
InvalidKeyOwnershipProof
A key ownership proof provided as part of an equivocation report is invalid.
Namespace
PauseFailed
Attempt to signal GRANDPA pause when the authority set isn't live (either paused or already pending pause).
Namespace
ResumeFailed
Attempt to signal GRANDPA resume when the authority set isn't paused (either live or already pending resume).
Namespace
TooSoon
Cannot signal forced change so soon after last.
Namespace
Constants
maxAuthorities
Max Authorities in use
Namespace
Type
JSON-RPC Methods
proveFinality
proveFinality
Prove finality for the given block number, returning the Justification for the last block in the set.
Interface
JSON
roundState
roundState
Returns the state of the current best round state as well as the ongoing background rounds
Interface
JSON
subscribeJustifications
subscribeJustifications
Subscribes to grandpa justifications
Interface
JSON
Last updated