Type Alias pallet_im_online::pallet::HeartbeatAfter

source ·
pub type HeartbeatAfter<T: Config> = StorageValue<_GeneratedPrefixForStorageHeartbeatAfter<T>, BlockNumberFor<T>, ValueQuery>;
Expand description

The block number after which it’s ok to send heartbeats in the current session.

At the beginning of each session we set this to a value that should fall roughly in the middle of the session duration. The idea is to first wait for the validators to produce a block in the current session, so that the heartbeat later on will not be necessary.

This value will only be used as a fallback if we fail to get a proper session progress estimate from NextSessionRotation, as those estimates should be more accurate then the value we calculate for HeartbeatAfter.

Storage type is [StorageValue] with value type BlockNumberFor < T >.

Aliased Type§

struct HeartbeatAfter<T: Config>(/* private fields */);