mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-25 23:29:58 -07:00
crates: snapshot
This commit is contained in:
@@ -119,7 +119,7 @@ impl Vecs {
|
||||
let mut height_to_first_txindex_iter = indexer.vecs.tx.height_to_first_txindex.iter()?;
|
||||
let mut txindex_to_first_txoutindex_iter =
|
||||
indexer.vecs.tx.txindex_to_first_txoutindex.iter()?;
|
||||
let mut txindex_to_output_count_iter = indexes.txindex_to_output_count.iter();
|
||||
let mut txindex_to_output_count_iter = indexes.transaction.txindex_to_output_count.iter();
|
||||
let mut txoutindex_to_outputtype_iter =
|
||||
indexer.vecs.txout.txoutindex_to_outputtype.iter()?;
|
||||
let mut txoutindex_to_typeindex_iter = indexer.vecs.txout.txoutindex_to_typeindex.iter()?;
|
||||
|
||||
@@ -90,7 +90,7 @@ impl Vecs {
|
||||
.unwrap()
|
||||
.boxed_clone(),
|
||||
chain
|
||||
.indexes_to_subsidy
|
||||
.coinbase.indexes_to_subsidy
|
||||
.sats
|
||||
.height
|
||||
.as_ref()
|
||||
@@ -116,7 +116,7 @@ impl Vecs {
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.boxed_clone(),
|
||||
chain.indexes_to_fee.sats.height.unwrap_sum().boxed_clone(),
|
||||
chain.transaction.indexes_to_fee.sats.height.unwrap_sum().boxed_clone(),
|
||||
);
|
||||
|
||||
let indexes_to_fee = ComputedValueVecsFromHeight::forced_import(
|
||||
@@ -139,13 +139,13 @@ impl Vecs {
|
||||
.unwrap()
|
||||
.boxed_clone(),
|
||||
chain
|
||||
.indexes_to_block_count
|
||||
.block.indexes_to_block_count
|
||||
.height
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.boxed_clone(),
|
||||
&indexes_to_blocks_mined,
|
||||
&chain.indexes_to_block_count,
|
||||
&chain.block.indexes_to_block_count,
|
||||
),
|
||||
indexes_to_1d_dominance: LazyVecsFrom2FromHeight::from_computed::<PercentageU32F32>(
|
||||
&suffix("1d_dominance"),
|
||||
@@ -156,31 +156,31 @@ impl Vecs {
|
||||
.unwrap()
|
||||
.boxed_clone(),
|
||||
chain
|
||||
.indexes_to_block_count
|
||||
.block.indexes_to_block_count
|
||||
.height
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.boxed_clone(),
|
||||
&indexes_to_blocks_mined,
|
||||
&chain.indexes_to_block_count,
|
||||
&chain.block.indexes_to_block_count,
|
||||
),
|
||||
indexes_to_1w_dominance: LazyVecsFrom2FromDateIndex::from_computed::<PercentageU32F32>(
|
||||
&suffix("1w_dominance"),
|
||||
version,
|
||||
&indexes_to_1w_blocks_mined,
|
||||
&chain.indexes_to_1w_block_count,
|
||||
&chain.block.indexes_to_1w_block_count,
|
||||
),
|
||||
indexes_to_1m_dominance: LazyVecsFrom2FromDateIndex::from_computed::<PercentageU32F32>(
|
||||
&suffix("1m_dominance"),
|
||||
version,
|
||||
&indexes_to_1m_blocks_mined,
|
||||
&chain.indexes_to_1m_block_count,
|
||||
&chain.block.indexes_to_1m_block_count,
|
||||
),
|
||||
indexes_to_1y_dominance: LazyVecsFrom2FromDateIndex::from_computed::<PercentageU32F32>(
|
||||
&suffix("1y_dominance"),
|
||||
version,
|
||||
&indexes_to_1y_blocks_mined,
|
||||
&chain.indexes_to_1y_block_count,
|
||||
&chain.block.indexes_to_1y_block_count,
|
||||
),
|
||||
slug,
|
||||
indexes_to_blocks_mined,
|
||||
|
||||
Reference in New Issue
Block a user