mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-05 08:08:15 -07:00
global: snapshot
This commit is contained in:
@@ -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>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user