Trait pallet_grandpa::pallet::Config
source · pub trait Config: Config {
type RuntimeEvent: From<Event> + Into<<Self as Config>::RuntimeEvent> + IsType<<Self as Config>::RuntimeEvent>;
type KeyOwnerProof: Parameter + GetSessionNumber + GetValidatorCount;
type KeyOwnerIdentification: Parameter;
type KeyOwnerProofSystem: KeyOwnerProofSystem<(KeyTypeId, AuthorityId), Proof = Self::KeyOwnerProof, IdentificationTuple = Self::KeyOwnerIdentification>;
type HandleEquivocation: HandleEquivocation<Self>;
type WeightInfo: WeightInfo;
type MaxAuthorities: Get<u32>;
type MaxSetIdSessionEntries: Get<u64>;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Required Associated Types§
sourcetype RuntimeEvent: From<Event> + Into<<Self as Config>::RuntimeEvent> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event> + Into<<Self as Config>::RuntimeEvent> + IsType<<Self as Config>::RuntimeEvent>
The event type of this module.
sourcetype KeyOwnerProof: Parameter + GetSessionNumber + GetValidatorCount
type KeyOwnerProof: Parameter + GetSessionNumber + GetValidatorCount
The proof of key ownership, used for validating equivocation reports The proof must include the session index and validator count of the session at which the equivocation occurred.
sourcetype KeyOwnerIdentification: Parameter
type KeyOwnerIdentification: Parameter
The identification of a key owner, used when reporting equivocations.
sourcetype KeyOwnerProofSystem: KeyOwnerProofSystem<(KeyTypeId, AuthorityId), Proof = Self::KeyOwnerProof, IdentificationTuple = Self::KeyOwnerIdentification>
type KeyOwnerProofSystem: KeyOwnerProofSystem<(KeyTypeId, AuthorityId), Proof = Self::KeyOwnerProof, IdentificationTuple = Self::KeyOwnerIdentification>
A system for proving ownership of keys, i.e. that a given key was part of a validator set, needed for validating equivocation reports.
sourcetype HandleEquivocation: HandleEquivocation<Self>
type HandleEquivocation: HandleEquivocation<Self>
The equivocation handling subsystem, defines methods to report an
offence (after the equivocation has been validated) and for submitting a
transaction to report an equivocation (from an offchain context).
NOTE: when enabling equivocation handling (i.e. this type isn’t set to
()
) you must use this pallet’s ValidateUnsigned
in the runtime
definition.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weights for this pallet.
sourcetype MaxAuthorities: Get<u32>
type MaxAuthorities: Get<u32>
Max Authorities in use
sourcetype MaxSetIdSessionEntries: Get<u64>
type MaxSetIdSessionEntries: Get<u64>
The maximum number of entries to keep in the set id to session index mapping.
Since the SetIdSession
map is only used for validating equivocations this
value should relate to the bonding duration of whatever staking system is
being used (if any). If equivocation handling is not enabled then this value
can be zero.