computer: stateful snapshot

This commit is contained in:
nym21
2025-12-17 15:04:02 +01:00
parent 9b2f334130
commit fa609c73ba
16 changed files with 172 additions and 341 deletions

View File

@@ -457,8 +457,10 @@ pub fn process_blocks(
)?;
// Compute and push percentiles for aggregate cohorts (all, sth, lth)
vecs.utxo_cohorts
.truncate_push_aggregate_percentiles(height)?;
if let Some(dateindex) = dateindex_opt {
vecs.utxo_cohorts
.truncate_push_aggregate_percentiles(dateindex)?;
}
// Periodic checkpoint flush
if height != last_height