Calls
heartbeat
NamespaceStorage
authoredBlocks
For each session index, we keep a mapping ofValidatorId<T>
to the number of blocks authored by the given authority.
Namespace
heartbeatAfter
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 fromNextSessionRotation
, as those estimates should be more accurate then the value we calculate for HeartbeatAfter
.
Namespace
keys
The current set of keys that may issue a heartbeat. NamespacereceivedHeartbeats
For each session index, we keep a mapping ofSessionIndex
and AuthIndex
to WrapperOpaque<BoundedOpaqueNetworkState>
.
Namespace
Events
AllGood
At the end of the session, no offence was committed. NamespaceHeartbeatReceived
A new heartbeat was received fromAuthorityId
.
Namespace