mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 14:49:58 -07:00
computer: snapshot
This commit is contained in:
@@ -5,7 +5,7 @@ use vecdb::Database;
|
||||
use super::Vecs;
|
||||
use crate::{
|
||||
indexes,
|
||||
internal::{ComputedFromHeight, ComputedFromHeightCumulativeSum},
|
||||
internal::{ComputedPerBlock, ComputedPerBlockCumulativeSum},
|
||||
};
|
||||
|
||||
impl Vecs {
|
||||
@@ -15,21 +15,21 @@ impl Vecs {
|
||||
indexes: &indexes::Vecs,
|
||||
) -> Result<Self> {
|
||||
Ok(Self {
|
||||
coinblocks_created: ComputedFromHeightCumulativeSum::forced_import(
|
||||
coinblocks_created: ComputedPerBlockCumulativeSum::forced_import(
|
||||
db,
|
||||
"coinblocks_created",
|
||||
version,
|
||||
indexes,
|
||||
)?,
|
||||
coinblocks_stored: ComputedFromHeightCumulativeSum::forced_import(
|
||||
coinblocks_stored: ComputedPerBlockCumulativeSum::forced_import(
|
||||
db,
|
||||
"coinblocks_stored",
|
||||
version,
|
||||
indexes,
|
||||
)?,
|
||||
liveliness: ComputedFromHeight::forced_import(db, "liveliness", version, indexes)?,
|
||||
vaultedness: ComputedFromHeight::forced_import(db, "vaultedness", version, indexes)?,
|
||||
activity_to_vaultedness_ratio: ComputedFromHeight::forced_import(
|
||||
liveliness: ComputedPerBlock::forced_import(db, "liveliness", version, indexes)?,
|
||||
vaultedness: ComputedPerBlock::forced_import(db, "vaultedness", version, indexes)?,
|
||||
activity_to_vaultedness_ratio: ComputedPerBlock::forced_import(
|
||||
db,
|
||||
"activity_to_vaultedness_ratio",
|
||||
version,
|
||||
|
||||
Reference in New Issue
Block a user