mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-20 07:28:11 -07:00
global: snapshot
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user