Skip to main content

Module block

Module block 

Source
Expand description

Consensus-based block verification.

In contrast to checkpoint verification, which only checks hardcoded hashes, block verification checks all Zcash consensus rules.

The block verifier performs all of the semantic validation checks. If accepted, the block is sent to the state service for contextual verification, where it may be accepted or rejected.

Re-exports§

pub use request::Request;

Modules§

check
Consensus check functions
request
Block verifier request type.

Structs§

SemanticBlockVerifier
Asynchronous semantic block verification.
ShieldedActionCounts
The shielded components that the ZIP 218 action limits count.

Enums§

VerifyBlockError
Block verification errors.

Constants§

GLOBAL_SHIELDED_BUDGET
The ZIP 218 per-pool and global shielded action limits, which apply from NU7 activation.
MAX_BLOCK_SIGOPS
The maximum number of transparent signature operations allowed in a block.
ORCHARD_BLOCK_ACTION_LIMIT
The per-pool action limit for both Orchard and Ironwood. See GLOBAL_SHIELDED_BUDGET.
SAPLING_BLOCK_IO_LIMIT
See GLOBAL_SHIELDED_BUDGET.
SPROUT_BLOCK_JOIN_SPLIT_LIMIT
See GLOBAL_SHIELDED_BUDGET.

Functions§

map_commit_error 🔒
Converts an error from a CommitSemanticallyVerifiedBlock state request into a VerifyBlockError.
record_phase 🔒
Records the time since phase_start as the block verifier phase phase, then restarts the timer for the next phase.