Skip to main content

Module request

Module request 

Source
Expand description

State [tower::Service] request types.

Structs§

CheckpointVerifiedBlock
A block ready to be committed directly to the finalized state with a small number of checks if compared with a ContextuallyVerifiedBlock.
CommitCheckpointVerifiedBlockRequest
Commit a checkpointed block to the state
CommitSemanticallyVerifiedBlockRequest
Performs contextual validation of the given semantically verified block, committing it to the state if successful.
ContextuallyVerifiedBlock
A contextually verified block, ready to be committed directly to the finalized state with no checks, if it becomes the root of the best non-finalized chain.
FinalizedBlock
Contains a block with all its associated data that the finalized state can commit to its database.
InvalidateBlockRequest
Request to invalidate a block in the state.
ReconsiderBlockRequest
Request to reconsider a previously invalidated block and re-commit it to the state.
SemanticallyVerifiedBlock
A block which has undergone semantic validation and has been prepared for contextual validation.
TimedSpan
A convenience type for spawning blocking tokio tasks with a timer in the scope of a provided span.
Treestate
Wraps note commitment trees and the history tree together.

Enums§

FinalizableBlock
Contains a block ready to be committed.
HashOrHeight
Identify a block by hash or height.
ReadRequest
A read-only query about the chain state, via the ReadStateService.
Request
A query about or modification to the chain state, via the StateService.
Spend
Identify a spend by a transparent outpoint or revealed nullifier.

Traits§

MappedRequest
Helper trait for convenient access to expected response and error types.