global: snapshot

This commit is contained in:
nym21
2026-03-04 23:21:56 +01:00
parent 9e23de4ba1
commit ef0b77baa8
51 changed files with 2109 additions and 5730 deletions

View File

@@ -15,14 +15,8 @@ impl Vecs {
) -> Result<()> {
let window_starts = blocks.count.window_starts();
let circulating_supply = &distribution
.utxo_cohorts
.all
.metrics
.supply
.total
.sats
.height;
let all_metrics = &distribution.utxo_cohorts.all.metrics;
let circulating_supply = &all_metrics.supply.total.sats.height;
self.coinblocks_created
.compute(starting_indexes.height, &window_starts, exit, |vec| {
@@ -35,12 +29,7 @@ impl Vecs {
Ok(())
})?;
let coinblocks_destroyed = &distribution
.utxo_cohorts
.all
.metrics
.activity
.coinblocks_destroyed;
let coinblocks_destroyed = &all_metrics.activity.coinblocks_destroyed;
self.coinblocks_stored
.compute(starting_indexes.height, &window_starts, exit, |vec| {

View File

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

View File

@@ -19,22 +19,9 @@ impl Vecs {
cap: &cap::Vecs,
exit: &Exit,
) -> Result<()> {
let circulating_supply = &distribution
.utxo_cohorts
.all
.metrics
.supply
.total
.btc
.height;
let realized_price = &distribution
.utxo_cohorts
.all
.metrics
.realized
.realized_price
.cents
.height;
let all_metrics = &distribution.utxo_cohorts.all.metrics;
let circulating_supply = &all_metrics.supply.total.btc.height;
let realized_price = &all_metrics.realized.realized_price.cents.height;
self.vaulted_price.cents.height.compute_transform2(
starting_indexes.height,

View File

@@ -18,28 +18,10 @@ impl Vecs {
) -> Result<()> {
let window_starts = blocks.count.window_starts();
let coinblocks_destroyed = &distribution
.utxo_cohorts
.all
.metrics
.activity
.coinblocks_destroyed;
let coindays_destroyed = &distribution
.utxo_cohorts
.all
.metrics
.activity
.coindays_destroyed;
let circulating_supply = &distribution
.utxo_cohorts
.all
.metrics
.supply
.total
.btc
.height;
let all_metrics = &distribution.utxo_cohorts.all.metrics;
let coinblocks_destroyed = &all_metrics.activity.coinblocks_destroyed;
let coindays_destroyed = &all_metrics.activity.coindays_destroyed;
let circulating_supply = &all_metrics.supply.total.btc.height;
self.cointime_value_destroyed.compute(
starting_indexes.height,