Trait pallet_im_online::pallet::Config
source · pub trait Config: SendTransactionTypes<Call<Self>> + Config {
type AuthorityId: Member + Parameter + RuntimeAppPublic + Ord + MaybeSerializeDeserialize + MaxEncodedLen;
type MaxKeys: Get<u32>;
type MaxPeerInHeartbeats: Get<u32>;
type MaxPeerDataEncodingSize: Get<u32>;
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type ValidatorSet: ValidatorSetWithIdentification<Self::AccountId>;
type NextSessionRotation: EstimateNextSessionRotation<Self::BlockNumber>;
type ReportUnresponsiveness: ReportOffence<Self::AccountId, IdentificationTuple<Self>, UnresponsivenessOffence<IdentificationTuple<Self>>>;
type UnsignedPriority: Get<TransactionPriority>;
type WeightInfo: WeightInfo;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Required Associated Types§
sourcetype AuthorityId: Member + Parameter + RuntimeAppPublic + Ord + MaybeSerializeDeserialize + MaxEncodedLen
type AuthorityId: Member + Parameter + RuntimeAppPublic + Ord + MaybeSerializeDeserialize + MaxEncodedLen
The identifier type for an authority.
sourcetype MaxPeerInHeartbeats: Get<u32>
type MaxPeerInHeartbeats: Get<u32>
The maximum number of peers to be stored in ReceivedHeartbeats
sourcetype MaxPeerDataEncodingSize: Get<u32>
type MaxPeerDataEncodingSize: Get<u32>
The maximum size of the encoding of PeerId
and MultiAddr
that are coming
from the hearbeat
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
The overarching event type.
sourcetype ValidatorSet: ValidatorSetWithIdentification<Self::AccountId>
type ValidatorSet: ValidatorSetWithIdentification<Self::AccountId>
A type for retrieving the validators supposed to be online in a session.
sourcetype NextSessionRotation: EstimateNextSessionRotation<Self::BlockNumber>
type NextSessionRotation: EstimateNextSessionRotation<Self::BlockNumber>
A trait that allows us to estimate the current session progress and also the average session length.
This parameter is used to determine the longevity of heartbeat
transaction and a
rough time when we should start considering sending heartbeats, since the workers
avoids sending them at the very beginning of the session, assuming there is a
chance the authority will produce a block and they won’t be necessary.
sourcetype ReportUnresponsiveness: ReportOffence<Self::AccountId, IdentificationTuple<Self>, UnresponsivenessOffence<IdentificationTuple<Self>>>
type ReportUnresponsiveness: ReportOffence<Self::AccountId, IdentificationTuple<Self>, UnresponsivenessOffence<IdentificationTuple<Self>>>
A type that gives us the ability to submit unresponsiveness offence reports.
sourcetype UnsignedPriority: Get<TransactionPriority>
type UnsignedPriority: Get<TransactionPriority>
A configuration for base priority of unsigned transactions.
This is exposed so that it can be tuned for particular runtime, when multiple pallets send unsigned transactions.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.