global: snapshot

This commit is contained in:
nym21
2026-01-10 18:43:18 +01:00
parent 3bc0615000
commit 6f45ec13f3
311 changed files with 6916 additions and 7664 deletions
@@ -4,7 +4,7 @@ use brk_types::{CheckedSub, Height, Timestamp, Version};
use vecdb::{Database, VecIndex};
use super::Vecs;
use crate::{indexes, internal::LazyBlockDistribution};
use crate::{indexes, internal::LazyFromHeightDistribution};
impl Vecs {
pub fn forced_import(
@@ -13,7 +13,7 @@ impl Vecs {
indexer: &Indexer,
indexes: &indexes::Vecs,
) -> Result<Self> {
let interval = LazyBlockDistribution::forced_import_with_init(
let interval = LazyFromHeightDistribution::forced_import_with_init(
db,
"block_interval",
version,
@@ -1,10 +1,10 @@
use brk_traversable::Traversable;
use brk_types::Timestamp;
use crate::internal::LazyBlockDistribution;
use crate::internal::LazyFromHeightDistribution;
#[derive(Clone, Traversable)]
pub struct Vecs {
#[traversable(flatten)]
pub interval: LazyBlockDistribution<Timestamp>,
pub interval: LazyFromHeightDistribution<Timestamp>,
}