Skip to content

Commit ffd7645

Browse files
authored
chore: extract TreeState to separate submodule (#16172)
1 parent 0dee91f commit ffd7645

File tree

3 files changed

+653
-623
lines changed

3 files changed

+653
-623
lines changed

crates/engine/tree/src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//! The components in this crate are involved in:
66
//! * Handling and reacting to incoming consensus events ([`EngineHandler`](engine::EngineHandler))
77
//! * Advancing the chain ([`ChainOrchestrator`](chain::ChainOrchestrator))
8-
//! * Keeping track of the chain structure in-memory ([`TreeState`](tree::TreeState))
8+
//! * Keeping track of the chain structure in-memory ([`TreeState`](tree::state::TreeState))
99
//! * Performing backfill sync and handling its progress ([`BackfillSync`](backfill::BackfillSync))
1010
//! * Downloading blocks ([`BlockDownloader`](download::BlockDownloader)), and
1111
//! * Persisting blocks and performing pruning
@@ -58,10 +58,10 @@
5858
//!
5959
//! ## Chain representation
6060
//!
61-
//! The chain is represented by the [`TreeState`](tree::TreeState) data structure, which keeps
62-
//! tracks of blocks by hash and number, as well as keeping track of parent-child relationships
63-
//! between blocks. The hash and number of the current head of the canonical chain is also tracked
64-
//! in the [`TreeState`](tree::TreeState).
61+
//! The chain is represented by the [`TreeState`](tree::state::TreeState) data structure, which
62+
//! keeps tracks of blocks by hash and number, as well as keeping track of parent-child
63+
//! relationships between blocks. The hash and number of the current head of the canonical chain is
64+
//! also tracked in the [`TreeState`](tree::state::TreeState).
6565
//!
6666
//! ## Persistence model
6767
//!

0 commit comments

Comments
 (0)