global: MASSIVE snapshot

This commit is contained in:
nym21
2026-01-07 01:16:37 +01:00
parent e832ffbe23
commit cb0abc324e
487 changed files with 21155 additions and 13627 deletions

View File

@@ -6,7 +6,7 @@ use vecdb::{Database, IterableCloneableVec, LazyVecFrom2};
use super::Vecs;
use crate::{
indexes,
internal::{ComputedVecsFromHeight, Source, VecBuilderOptions},
internal::ComputedBlockFull,
};
impl Vecs {
@@ -16,15 +16,6 @@ impl Vecs {
indexer: &Indexer,
indexes: &indexes::Vecs,
) -> Result<Self> {
let full_stats = || {
VecBuilderOptions::default()
.add_average()
.add_minmax()
.add_percentiles()
.add_sum()
.add_cumulative()
};
let txindex_to_is_coinbase = LazyVecFrom2::init(
"is_coinbase",
version,
@@ -39,13 +30,11 @@ impl Vecs {
);
Ok(Self {
indexes_to_tx_count: ComputedVecsFromHeight::forced_import(
indexes_to_tx_count: ComputedBlockFull::forced_import(
db,
"tx_count",
Source::Compute,
version,
indexes,
full_stats(),
)?,
txindex_to_is_coinbase,
})