mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-23 17:08:10 -07:00
global: fixes
This commit is contained in:
@@ -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),+);
|
||||
|
||||
Reference in New Issue
Block a user