global: snapshot

This commit is contained in:
nym21
2026-03-10 01:13:52 +01:00
parent 961dea6934
commit 46ac55d950
121 changed files with 9792 additions and 5997 deletions

View File

@@ -34,7 +34,7 @@ impl Vecs {
vec.compute_subtract(
starting_indexes.height,
&self.coinblocks_created.height,
&all_metrics.activity.coinblocks_destroyed.height,
&all_metrics.activity.coinblocks_destroyed.raw.height,
exit,
)?;
Ok(())
@@ -42,7 +42,7 @@ impl Vecs {
self.liveliness.height.compute_divide(
starting_indexes.height,
&all_metrics.activity.coinblocks_destroyed_cumulative.height,
&all_metrics.activity.coinblocks_destroyed.cumulative.height,
&self.coinblocks_created.cumulative.height,
exit,
)?;

View File

@@ -18,7 +18,7 @@ impl Vecs {
exit: &Exit,
) -> Result<()> {
let all_metrics = &distribution.utxo_cohorts.all.metrics;
let realized_cap_cents = &all_metrics.realized.cap_cents.height;
let realized_cap_cents = &all_metrics.realized.cap.cents.height;
let circulating_supply = &all_metrics.supply.total.btc.height;
self.thermo_cap.cents.height.compute_transform(

View File

@@ -28,7 +28,7 @@ impl Vecs {
vec.compute_multiply(
starting_indexes.height,
&prices.price.usd.height,
&coinblocks_destroyed.height,
&coinblocks_destroyed.raw.height,
exit,
)?;
Ok(())
@@ -64,7 +64,7 @@ impl Vecs {
vec.compute_transform3(
starting_indexes.height,
&prices.price.usd.height,
&coindays_destroyed.height,
&coindays_destroyed.raw.height,
circulating_supply,
|(i, price, cdd, supply, _): (_, Dollars, StoredF64, Bitcoin, _)| {
let supply_f64 = f64::from(supply);