mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
51 lines
1.6 KiB
Rust
51 lines
1.6 KiB
Rust
//! Implementation of a tree-like structure for blockchains.
|
|
//!
|
|
//! The [BlockchainTree] can validate, execute, and revert blocks in multiple competing sidechains.
|
|
//! This structure is used for Reth's sync mode at the tip instead of the pipeline, and is the
|
|
//! primary executor and validator of payloads sent from the consensus layer.
|
|
//!
|
|
//! Blocks and their resulting state transitions are kept in-memory until they are persisted.
|
|
//!
|
|
//! ## Feature Flags
|
|
//!
|
|
//! - `test-utils`: Export utilities for testing
|
|
|
|
#![doc(
|
|
html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png",
|
|
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
|
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
|
)]
|
|
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
|
#![deny(unused_must_use, rust_2018_idioms)]
|
|
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
|
|
|
pub mod blockchain_tree;
|
|
pub use blockchain_tree::{BlockHashes, BlockchainTree};
|
|
|
|
pub mod block_indices;
|
|
pub use block_indices::BlockIndices;
|
|
|
|
pub mod chain;
|
|
pub use chain::AppendableChain;
|
|
|
|
pub mod config;
|
|
pub use config::BlockchainTreeConfig;
|
|
|
|
pub mod externals;
|
|
pub use externals::TreeExternals;
|
|
|
|
pub mod shareable;
|
|
pub use shareable::ShareableBlockchainTree;
|
|
|
|
pub mod post_state_data;
|
|
pub use post_state_data::{BundleStateData, BundleStateDataRef};
|
|
|
|
/// Buffer of not executed blocks.
|
|
pub mod block_buffer;
|
|
mod canonical_chain;
|
|
|
|
/// Common blockchain tree metrics.
|
|
pub mod metrics;
|
|
|
|
pub use block_buffer::BlockBuffer;
|