global: fixes

This commit is contained in:
nym21
2026-05-04 16:57:21 +02:00
parent 4663d13194
commit dc32bd480f
121 changed files with 2996 additions and 2165 deletions
+9 -1
View File
@@ -5,7 +5,7 @@ use std::{fs, path::Path, thread, time::Instant};
use brk_error::Result;
use brk_indexer::Indexer;
use brk_traversable::Traversable;
use brk_types::Version;
use brk_types::{Height, Version};
use tracing::info;
use vecdb::{AnyExportableVec, Exit, Ro, Rw, StorageMode};
@@ -480,6 +480,14 @@ impl Computer {
}
}
impl Computer<Ro> {
/// Last height whose computed-side state is durably stamped, derived
/// from `distribution.supply_state`'s stamp.
pub fn computed_height(&self) -> Height {
Height::from(self.distribution.supply_state.stamp())
}
}
macro_rules! impl_iter_named {
($($field:ident),+ $(,)?) => {
impl_iter_named!(@mode Ro, $($field),+);