Skip to main content

Root Hash

The roothash service is responsible for runtime commitment processing and minimal runtime state keeping.

The service interface definition lives in go/roothash/api. It defines the supported queries and transactions. For more information you can also check out the consensus service API documentation.

Methods

Executor Commit

The executor commit method allows an executor node to submit commitments of an executed computation. A new executor commit transaction can be generated using NewExecutorCommitTx.

Method name:

roothash.ExecutorCommit

Body:

type ExecutorCommit struct {
ID common.Namespace `json:"id"`
Commits []commitment.ExecutorCommitment `json:"commits"`
}

Fields:

Events

Consensus Parameters

  • max_runtime_messages (uint32) specifies the global limit on the number of messages that can be emitted in each round by the runtime. The default value of 0 disables the use of runtime messages.