Expand description
State [tower::Service] request types.
Structs§
- Checkpoint
Verified Block - A block ready to be committed directly to the finalized state with
a small number of checks if compared with a
ContextuallyVerifiedBlock. - Commit
Checkpoint Verified Block Request - Commit a checkpointed block to the state
- Commit
Semantically Verified Block Request - Performs contextual validation of the given semantically verified block, committing it to the state if successful.
- Contextually
Verified Block - 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.
- Finalized
Block - Contains a block with all its associated data that the finalized state can commit to its database.
- Invalidate
Block Request - Request to invalidate a block in the state.
- Reconsider
Block Request - Request to reconsider a previously invalidated block and re-commit it to the state.
- Semantically
Verified Block - A block which has undergone semantic validation and has been prepared for contextual validation.
- Timed
Span - 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§
- Finalizable
Block - Contains a block ready to be committed.
- Hash
OrHeight - Identify a block by hash or height.
- Read
Request - 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§
- Mapped
Request - Helper trait for convenient access to expected response and error types.