Skip to main content

Calls

heartbeat

Namespace
Type

Storage

authoredBlocks

For each session index, we keep a mapping of ValidatorId<T> to the number of blocks authored by the given authority. Namespace
Type

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 from NextSessionRotation, as those estimates should be more accurate then the value we calculate for HeartbeatAfter. Namespace
Type

keys

The current set of keys that may issue a heartbeat. Namespace
Type

receivedHeartbeats

For each session index, we keep a mapping of SessionIndex and AuthIndex to WrapperOpaque<BoundedOpaqueNetworkState>. Namespace
Type

Events

AllGood

At the end of the session, no offence was committed. Namespace
Type

HeartbeatReceived

A new heartbeat was received from AuthorityId. Namespace
Type

SomeOffline

At the end of the session, at least one validator was found to be offline. Namespace
Type

Errors

DuplicatedHeartbeat

Duplicated heartbeat. Namespace

InvalidKey

Non existent public key. Namespace

Constants

unsignedPriority

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. Namespace
Type