crates: snapshot

This commit is contained in:
nym21
2025-12-30 18:09:08 +01:00
parent bd376f86ea
commit 8cff55a405
176 changed files with 7317 additions and 4539 deletions

View File

@@ -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()?;

View File

@@ -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,