global: snapshot

This commit is contained in:
nym21
2026-03-08 12:06:55 +01:00
parent 6bb5c63db7
commit 7f1f6044dc
8 changed files with 226 additions and 21 deletions
@@ -4,7 +4,7 @@ mod rolling_sum;
use brk_error::Result;
use brk_traversable::Traversable;
use brk_types::{Bitcoin, Cents, Dollars, Sats, Version};
use vecdb::{Database, ReadableCloneableVec, Rw, StorageMode};
use vecdb::{AnyVec, Database, ReadableCloneableVec, Rw, StorageMode};
use crate::{
indexes,
@@ -57,6 +57,10 @@ impl ByUnit {
usd,
})
}
pub(crate) fn min_stateful_len(&self) -> usize {
self.sats.height.len()
}
}
impl Windows<ByUnit> {