mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-10 02:28:13 -07:00
global: snapshot
This commit is contained in:
@@ -151,7 +151,7 @@ impl RealizedOps for MinimalRealizedState {
|
||||
}
|
||||
|
||||
/// Core realized state: extends Minimal with sent_in_profit/loss tracking.
|
||||
/// Used by CoreCohortMetrics cohorts (epoch, class, max_age, min_age — ~59 separate cohorts).
|
||||
/// Used by CoreCohortMetrics cohorts (epoch, class, under_age, over_age — ~59 separate cohorts).
|
||||
#[derive(Debug, Default, Clone)]
|
||||
pub struct CoreRealizedState {
|
||||
minimal: MinimalRealizedState,
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
use std::ops::{Add, AddAssign};
|
||||
|
||||
use brk_cohort::{ByAmountRange, GroupedByType};
|
||||
use brk_cohort::{AmountRange, ByType};
|
||||
use brk_types::{OutputType, Sats, SupplyState};
|
||||
use vecdb::unlikely;
|
||||
|
||||
#[derive(Default, Debug)]
|
||||
pub struct Transacted {
|
||||
pub spendable_supply: SupplyState,
|
||||
pub by_type: GroupedByType<SupplyState>,
|
||||
pub by_size_group: ByAmountRange<SupplyState>,
|
||||
pub by_type: ByType<SupplyState>,
|
||||
pub by_size_group: AmountRange<SupplyState>,
|
||||
}
|
||||
|
||||
impl Transacted {
|
||||
|
||||
Reference in New Issue
Block a user