2020-06-07 21:27:38 -07:00
|
|
|
//! Consensus handling for Zebra.
|
|
|
|
//!
|
|
|
|
//! `verify::BlockVerifier` verifies blocks and their transactions, then adds them to
|
|
|
|
//! `zebra_state::ZebraState`.
|
|
|
|
//!
|
2020-06-09 04:17:16 -07:00
|
|
|
//! `mempool::MempoolTransactionVerifier` verifies transactions, and adds them to
|
|
|
|
//! `mempool::ZebraMempoolState`.
|
2020-06-07 21:27:38 -07:00
|
|
|
//!
|
|
|
|
//! Consensus handling is provided using `tower::Service`s, to support backpressure
|
|
|
|
//! and batch verification.
|
|
|
|
|
2020-02-26 21:10:08 -08:00
|
|
|
#![doc(html_logo_url = "https://www.zfnd.org/images/zebra-icon.png")]
|
|
|
|
#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_consensus")]
|
2020-06-07 21:27:38 -07:00
|
|
|
#![deny(missing_docs)]
|
2020-07-08 04:22:36 -07:00
|
|
|
#![allow(clippy::try_err)]
|
2020-02-26 21:10:08 -08:00
|
|
|
|
2020-07-09 23:51:01 -07:00
|
|
|
pub mod block;
|
2020-06-21 15:51:43 -07:00
|
|
|
pub mod checkpoint;
|
2020-06-09 04:17:16 -07:00
|
|
|
pub mod mempool;
|
2020-07-15 00:01:05 -07:00
|
|
|
pub mod parameters;
|
2020-07-09 23:51:01 -07:00
|
|
|
pub mod redjubjub;
|
|
|
|
mod script;
|
|
|
|
mod transaction;
|