Crate zebra_state[][src]

State storage code for Zebra. 🦓

Re-exports

pub use constants::MAX_BLOCK_REORG_HEIGHT;

Modules

constants

Definitions of constants.

Structs

CloneError

A wrapper for type erased errors that is itself clonable and implements the Error trait

CommitBlockError

An error describing the reason a block could not be committed to the state.

Config

Configuration for the state service.

FinalizedBlock

A finalized block, ready to be committed directly to the finalized state with no checks.

PreparedBlock

A block which has undergone semantic validation and has been prepared for contextual validation.

Utxo

An unspent transparent::Output, with accompanying metadata.

Enums

HashOrHeight

Identify a block by hash or height.

Request

A query about or modification to the chain state.

Response

A response to a state Request.

ValidateContextError

An error describing why a block failed contextual validation.

Functions

init

Initialize a state service from the provided Config.

Type Definitions

BoxError

A boxed std::error::Error.