Module proof_task

Source
Expand description

A Task that manages sending proof requests to a number of tasks that have longer-running database transactions.

The ProofTaskManager ensures that there are a max number of currently executing proof tasks, and is responsible for managing the fixed number of database transactions created at the start of the task.

Individual ProofTaskTx instances manage a dedicated [InMemoryTrieCursorFactory] and [HashedPostStateCursorFactory], which are each backed by a database transaction.

Structs§

ProofTaskCtx
Data used for initializing cursor factories that is shared across all storage proof instances.
ProofTaskManager
A task that manages sending multiproof requests to a number of tasks that have longer-running database transactions
ProofTaskManagerHandle
A handle that wraps a single proof task sender that sends a terminate message on Drop if the number of active handles went to zero.
ProofTaskTx
This contains all information shared between all storage proof instances.
StorageProofInput
This represents an input for a storage proof.

Enums§

ProofTaskBlindedNodeProvider
Blinded node provider for retrieving trie nodes by path.
ProofTaskKind
Proof task kind.
ProofTaskMessage
Message used to communicate with ProofTaskManager.