Messages
In order to enable runtimes to perform actions in the consensus layer on their behalf, they can emit messages in each round.

Supported Messages

The following sections describe the methods supported by the consensus roothash service.

Staking Method Call

The staking method call message enables a runtime to call one of the supported staking service methods.
Field name:
1
staking
Copied!
Body:
1
type StakingMessage struct {
2
cbor.Versioned
3
4
Transfer *staking.Transfer `json:"transfer,omitempty"`
5
Withdraw *staking.Withdraw `json:"withdraw,omitempty"`
6
}
Copied!
Fields:
Exactly one of the supported method fields needs to be non-nil, otherwise the message is considered malformed.

Limits

The maximum number of runtime messages that can be emitted in a single round is limited by the executor.max_messages option in the runtime descriptor. Its upper bound is the max_messages consensus parameter of the roothash service.
Last modified 10mo ago