global: big snapshot

This commit is contained in:
nym21
2026-03-13 12:47:01 +01:00
parent c83955eea7
commit 2b31c7f6b7
158 changed files with 4961 additions and 6939 deletions

View File

@@ -4,7 +4,7 @@ use brk_types::{StoredBool, TxIndex, Version};
use vecdb::{Database, LazyVecFrom2, ReadableCloneableVec};
use super::Vecs;
use crate::{indexes, internal::ComputedPerBlockFull};
use crate::{indexes, internal::{CachedWindowStarts, ComputedPerBlockFull}};
impl Vecs {
pub(crate) fn forced_import(
@@ -12,6 +12,7 @@ impl Vecs {
version: Version,
indexer: &Indexer,
indexes: &indexes::Vecs,
cached_starts: &CachedWindowStarts,
) -> Result<Self> {
let txindex_to_is_coinbase = LazyVecFrom2::init(
"is_coinbase",
@@ -26,7 +27,13 @@ impl Vecs {
);
Ok(Self {
total: ComputedPerBlockFull::forced_import(db, "tx_count", version, indexes)?,
total: ComputedPerBlockFull::forced_import(
db,
"tx_count",
version,
indexes,
cached_starts,
)?,
is_coinbase: txindex_to_is_coinbase,
})
}