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>(PhantomData<(_GeneratedPrefixForStorageHeartbeatAfter<T>, <<<T as Config>::Block as Block>::Header as Header>::Number, ValueQuery, GetDefault)>);

Fields§

§0: PhantomData<(_GeneratedPrefixForStorageHeartbeatAfter<T>, <<<T as Config>::Block as Block>::Header as Header>::Number, ValueQuery, GetDefault)>