global: snapshot

This commit is contained in:
nym21
2026-03-13 16:27:10 +01:00
parent b2a1251774
commit 3709ceff8e
168 changed files with 2007 additions and 2008 deletions
@@ -10,7 +10,7 @@ use vecdb::{AnyStoredVec, AnyVec, Database, Exit, ReadableVec, Rw, StorageMode,
use crate::{
distribution::state::{AddressCohortState, MinimalRealizedState},
indexes,
internal::{CachedWindowStarts, ComputedPerBlockWithDeltas},
internal::{CachedWindowStarts, PerBlockWithDeltas},
prices,
};
@@ -27,7 +27,7 @@ pub struct AddressCohortVecs<M: StorageMode = Rw> {
#[traversable(flatten)]
pub metrics: MinimalCohortMetrics<M>,
pub address_count: ComputedPerBlockWithDeltas<StoredU64, StoredI64, BasisPointsSigned32, M>,
pub address_count: PerBlockWithDeltas<StoredU64, StoredI64, BasisPointsSigned32, M>,
}
impl AddressCohortVecs {
@@ -51,7 +51,7 @@ impl AddressCohortVecs {
cached_starts,
};
let address_count = ComputedPerBlockWithDeltas::forced_import(
let address_count = PerBlockWithDeltas::forced_import(
db,
&cfg.name("address_count"),
version,
@@ -3,7 +3,7 @@ use brk_types::{Cents, CentsCompact, Sats};
use crate::{
distribution::state::PendingDelta,
internal::{FenwickNode, FenwickTree, PERCENTILES, PERCENTILES_LEN},
internal::{PERCENTILES, PERCENTILES_LEN, algo::{FenwickNode, FenwickTree}},
};
use super::COST_BASIS_PRICE_DIGITS;
@@ -538,7 +538,7 @@ impl UTXOCohorts<Rw> {
.minimal
.sopr
.value_created
.raw
.base
.height
.read_only_clone();
let under_1h_value_destroyed = self
@@ -549,7 +549,7 @@ impl UTXOCohorts<Rw> {
.minimal
.sopr
.value_destroyed
.raw
.base
.height
.read_only_clone();