computer: snapshot

This commit is contained in:
nym21
2026-02-27 01:23:36 +01:00
parent 78fc5ffcf7
commit 72c17096ea
52 changed files with 3011 additions and 2967 deletions

View File

@@ -15,7 +15,7 @@ impl Query {
let iter = Day1Iter::new(computer, start, current_height.to_usize());
let cumulative = &computer.transactions.fees.fee.height.sum_cumulative.cumulative;
let cumulative = &computer.mining.rewards.fees.sats.cumulative.height;
let first_height = &computer.indexes.day1.first_height;
Ok(iter.collect(|di, ts, h| {
@@ -30,7 +30,9 @@ impl Query {
let cumulative_end = cumulative.collect_one_at(h_end.to_usize() - 1)?;
let cumulative_start = if h_start.to_usize() > 0 {
cumulative.collect_one_at(h_start.to_usize() - 1).unwrap_or(Sats::ZERO)
cumulative
.collect_one_at(h_start.to_usize() - 1)
.unwrap_or(Sats::ZERO)
} else {
Sats::ZERO
};

View File

@@ -13,7 +13,7 @@ impl Query {
let start_block = Height::from(current_height.to_usize().saturating_sub(block_count - 1));
let coinbase_vec = &computer.mining.rewards.coinbase.sats.height;
let fee_vec = &computer.transactions.fees.fee.height.sum_cumulative.sum.0;
let fee_vec = &computer.mining.rewards.fees.sats.height;
let tx_count_vec = &computer.transactions.count.tx_count.height;
let start = start_block.to_usize();