mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-27 02:38:10 -07:00
global: snapshot
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use brk_error::Result;
|
||||
use brk_types::{Bitcoin, CheckedSub, Indexes, StoredF64};
|
||||
use brk_types::{Bitcoin, Indexes, StoredF64};
|
||||
use vecdb::Exit;
|
||||
|
||||
use super::Vecs;
|
||||
@@ -30,8 +30,8 @@ impl Vecs {
|
||||
.compute(starting_indexes.height, exit, |vec| {
|
||||
vec.compute_subtract(
|
||||
starting_indexes.height,
|
||||
&self.coinblocks_created.raw.height,
|
||||
&distribution.coinblocks_destroyed.raw.height,
|
||||
&self.coinblocks_created.base.height,
|
||||
&distribution.coinblocks_destroyed.base.height,
|
||||
exit,
|
||||
)?;
|
||||
Ok(())
|
||||
@@ -44,13 +44,6 @@ impl Vecs {
|
||||
exit,
|
||||
)?;
|
||||
|
||||
self.vaultedness.height.compute_transform(
|
||||
starting_indexes.height,
|
||||
&self.liveliness.height,
|
||||
|(i, v, ..)| (i, StoredF64::from(1.0).checked_sub(v).unwrap()),
|
||||
exit,
|
||||
)?;
|
||||
|
||||
self.ratio.height.compute_divide(
|
||||
starting_indexes.height,
|
||||
&self.liveliness.height,
|
||||
|
||||
Reference in New Issue
Block a user