mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 06:39:58 -07:00
global: snapshot part 6
This commit is contained in:
@@ -30,8 +30,8 @@ impl Vecs {
|
||||
.compute(starting_indexes.height, exit, |vec| {
|
||||
vec.compute_subtract(
|
||||
starting_indexes.height,
|
||||
&self.coinblocks_created.base.height,
|
||||
&distribution.coinblocks_destroyed.base.height,
|
||||
&self.coinblocks_created.block.height,
|
||||
&distribution.coinblocks_destroyed.block.height,
|
||||
exit,
|
||||
)?;
|
||||
Ok(())
|
||||
|
||||
@@ -17,7 +17,7 @@ impl Vecs {
|
||||
self.vocdd_median_1y.compute_rolling_median_from_starts(
|
||||
starting_indexes.height,
|
||||
&blocks.lookback._1y,
|
||||
&value.vocdd.base.height,
|
||||
&value.vocdd.block.height,
|
||||
exit,
|
||||
)?;
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ impl Vecs {
|
||||
vec.compute_multiply(
|
||||
starting_indexes.height,
|
||||
&prices.spot.usd.height,
|
||||
&coinblocks_destroyed.base.height,
|
||||
&coinblocks_destroyed.block.height,
|
||||
exit,
|
||||
)?;
|
||||
Ok(())
|
||||
@@ -36,7 +36,7 @@ impl Vecs {
|
||||
vec.compute_multiply(
|
||||
starting_indexes.height,
|
||||
&prices.spot.usd.height,
|
||||
&activity.coinblocks_created.base.height,
|
||||
&activity.coinblocks_created.block.height,
|
||||
exit,
|
||||
)?;
|
||||
Ok(())
|
||||
@@ -47,7 +47,7 @@ impl Vecs {
|
||||
vec.compute_multiply(
|
||||
starting_indexes.height,
|
||||
&prices.spot.usd.height,
|
||||
&activity.coinblocks_stored.base.height,
|
||||
&activity.coinblocks_stored.block.height,
|
||||
exit,
|
||||
)?;
|
||||
Ok(())
|
||||
@@ -61,7 +61,7 @@ impl Vecs {
|
||||
vec.compute_transform3(
|
||||
starting_indexes.height,
|
||||
&prices.spot.usd.height,
|
||||
&coindays_destroyed.base.height,
|
||||
&coindays_destroyed.block.height,
|
||||
circulating_supply,
|
||||
|(i, price, cdd, supply, _): (_, Dollars, StoredF64, Bitcoin, _)| {
|
||||
let supply_f64 = f64::from(supply);
|
||||
|
||||
Reference in New Issue
Block a user