computer: new stateful 2

This commit is contained in:
nym21
2025-12-16 23:39:35 +01:00
parent 4b2ada14a0
commit a006cefd71
22 changed files with 544 additions and 221 deletions

View File

@@ -7,7 +7,7 @@
//! 4. Periodically flush to disk
//! 5. Compute aggregate cohorts from separate cohorts
mod aggregates;
pub mod aggregates;
mod block_loop;
mod context;
mod flush;
@@ -19,9 +19,7 @@ pub use context::ComputeContext;
pub use readers::{
IndexerReaders, VecsReaders, build_txinindex_to_txindex, build_txoutindex_to_txindex,
};
pub use recover::{
StartMode, determine_start_mode,
};
pub use recover::{StartMode, determine_start_mode, recover_state, reset_state};
/// Flush checkpoint interval (every N blocks).
pub const FLUSH_INTERVAL: usize = 10_000;