Expand description
GRANDPA Consensus module for runtime.
This manages the GRANDPA authority set ready for the native code. These authorities are only for GRANDPA finality, not for consensus overall.
In the future, it will also handle misbehavior reports, and on-chain finality notifications.
For full integration with GRANDPA, the GrandpaApi
should be implemented.
The necessary items are re-exported via the fg_primitives
crate.
Re-exports§
pub use sp_consensus_grandpa as fg_primitives;
pub use pallet::*;
Modules§
- migrations
- pallet
- The
pallet
module in each FRAME pallet hosts the most important items needed to construct this pallet.
Structs§
- Equivocation
Offence - GRANDPA equivocation offence report.
- Equivocation
Report System - GRANDPA equivocation offence report system.
- Stored
Pending Change - A stored pending change.
Limit
is the bound fornext_authorities
- Time
Slot - A round number and set id which point on the time of an offence.
Enums§
- Stored
State - Current state of the GRANDPA authority set. State transitions must happen in
the same order of states defined below, e.g.
Paused
implies a priorPendingPause
.
Traits§
Type Aliases§
- Authority
Id - Identity of a Grandpa authority.
- Authority
List - A list of Grandpa authorities with associated weights.
- Authority
Weight - The weight of an authority.
- Bounded
Authority List - Bounded version of
AuthorityList
,Limit
being the bound