zebra/zebra-consensus/src/lib.rs

16 lines
543 B
Rust
Raw Normal View History

//! Consensus handling for Zebra.
//!
//! `verify::BlockVerifier` verifies blocks and their transactions, then adds them to
//! `zebra_state::ZebraState`.
//!
//! `mempool::ZebraMempool` verifies transactions, and adds them to the mempool state.
//!
//! Consensus handling is provided using `tower::Service`s, to support backpressure
//! and batch verification.
#![doc(html_logo_url = "https://www.zfnd.org/images/zebra-icon.png")]
#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_consensus")]
#![deny(missing_docs)]
pub mod verify;