mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-20 23:48:10 -07:00
global: snapshot
This commit is contained in:
@@ -5,7 +5,7 @@ use vecdb::Database;
|
||||
use super::Vecs;
|
||||
use crate::{
|
||||
indexes,
|
||||
internal::{ComputedPerBlock, PercentPerBlock},
|
||||
internal::{PerBlock, PercentPerBlock},
|
||||
};
|
||||
|
||||
impl Vecs {
|
||||
@@ -21,13 +21,13 @@ impl Vecs {
|
||||
version,
|
||||
indexes,
|
||||
)?,
|
||||
tx_velocity_btc: ComputedPerBlock::forced_import(
|
||||
tx_velocity_btc: PerBlock::forced_import(
|
||||
db,
|
||||
"cointime_adj_tx_velocity_btc",
|
||||
version,
|
||||
indexes,
|
||||
)?,
|
||||
tx_velocity_usd: ComputedPerBlock::forced_import(
|
||||
tx_velocity_usd: PerBlock::forced_import(
|
||||
db,
|
||||
"cointime_adj_tx_velocity_usd",
|
||||
version,
|
||||
|
||||
@@ -2,11 +2,11 @@ use brk_traversable::Traversable;
|
||||
use brk_types::{BasisPointsSigned32, StoredF64};
|
||||
use vecdb::{Rw, StorageMode};
|
||||
|
||||
use crate::internal::{ComputedPerBlock, PercentPerBlock};
|
||||
use crate::internal::{PerBlock, PercentPerBlock};
|
||||
|
||||
#[derive(Traversable)]
|
||||
pub struct Vecs<M: StorageMode = Rw> {
|
||||
pub inflation_rate: PercentPerBlock<BasisPointsSigned32, M>,
|
||||
pub tx_velocity_btc: ComputedPerBlock<StoredF64, M>,
|
||||
pub tx_velocity_usd: ComputedPerBlock<StoredF64, M>,
|
||||
pub tx_velocity_btc: PerBlock<StoredF64, M>,
|
||||
pub tx_velocity_usd: PerBlock<StoredF64, M>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user