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