Skip to main content

Module consensus

Module consensus 

Source
Expand description

L2 consensus orchestration.

This module contains dig-clvm’s own code — the thin orchestration layer that composes chia-consensus, chia-bls, and chia-sdk into a consensus API.

Re-exports§

pub use block::build_block_generator;
pub use block::validate_block;
pub use config::ValidationConfig;
pub use config::L1_MAX_COST_PER_SPEND;
pub use config::L2_MAX_COST_PER_BLOCK;
pub use context::ValidationContext;
pub use error::ValidationError;
pub use result::BlockGeneratorResult;
pub use result::SpendResult;
pub use validate::validate_spend_bundle;

Modules§

block
Block generator construction and validation.
cache
BLS signature cache management.
config
Validation configuration and cost constants.
context
Validation context — L2 chain state passed into validation.
error
Validation error types.
result
Validation result types.
validate
Spend bundle validation.