mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 14:49:58 -07:00
computer: renames
This commit is contained in:
@@ -5,7 +5,7 @@ use vecdb::{Database, IterableCloneableVec};
|
||||
use super::Vecs;
|
||||
use crate::{
|
||||
indexes,
|
||||
internal::{BinaryBlockFull, ComputedBlockFull, PercentageU64F32},
|
||||
internal::{ComputedBlockFull, LazyBinaryBlockFull, PercentageU64F32},
|
||||
outputs,
|
||||
};
|
||||
|
||||
@@ -32,7 +32,7 @@ impl Vecs {
|
||||
// Adoption ratios (lazy)
|
||||
// Uses outputs.count.count as denominator (total output count)
|
||||
// At height level: per-block ratio; at dateindex level: sum-based ratio (% of new outputs)
|
||||
let taproot_adoption = BinaryBlockFull::from_height_and_txindex::<PercentageU64F32>(
|
||||
let taproot_adoption = LazyBinaryBlockFull::from_height_and_txindex::<PercentageU64F32>(
|
||||
"taproot_adoption",
|
||||
version,
|
||||
p2tr.height.boxed_clone(),
|
||||
@@ -40,7 +40,7 @@ impl Vecs {
|
||||
&p2tr,
|
||||
&outputs.count.total_count,
|
||||
);
|
||||
let segwit_adoption = BinaryBlockFull::from_height_and_txindex::<PercentageU64F32>(
|
||||
let segwit_adoption = LazyBinaryBlockFull::from_height_and_txindex::<PercentageU64F32>(
|
||||
"segwit_adoption",
|
||||
version,
|
||||
segwit.height.boxed_clone(),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use brk_traversable::Traversable;
|
||||
use brk_types::{StoredF32, StoredU64};
|
||||
|
||||
use crate::internal::{BinaryBlockFull, ComputedBlockFull};
|
||||
use crate::internal::{ComputedBlockFull, LazyBinaryBlockFull};
|
||||
|
||||
#[derive(Clone, Traversable)]
|
||||
pub struct Vecs {
|
||||
@@ -24,6 +24,6 @@ pub struct Vecs {
|
||||
pub segwit: ComputedBlockFull<StoredU64>,
|
||||
|
||||
// Adoption ratios
|
||||
pub taproot_adoption: BinaryBlockFull<StoredF32, StoredU64, StoredU64>,
|
||||
pub segwit_adoption: BinaryBlockFull<StoredF32, StoredU64, StoredU64>,
|
||||
pub taproot_adoption: LazyBinaryBlockFull<StoredF32, StoredU64, StoredU64>,
|
||||
pub segwit_adoption: LazyBinaryBlockFull<StoredF32, StoredU64, StoredU64>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user