mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-25 07:09:59 -07:00
global: snapshot part 6
This commit is contained in:
@@ -11,7 +11,7 @@ impl Query {
|
||||
let current_height = self.height().to_usize();
|
||||
let start = current_height.saturating_sub(time_period.block_count());
|
||||
|
||||
let coinbase_vec = &computer.mining.rewards.coinbase.base.sats.height;
|
||||
let coinbase_vec = &computer.mining.rewards.coinbase.block.sats.height;
|
||||
let timestamp_vec = &indexer.vecs.blocks.timestamp;
|
||||
|
||||
match time_period {
|
||||
|
||||
@@ -12,9 +12,9 @@ impl Query {
|
||||
let end_block = current_height;
|
||||
let start_block = Height::from(current_height.to_usize().saturating_sub(block_count - 1));
|
||||
|
||||
let coinbase_vec = &computer.mining.rewards.coinbase.base.sats.height;
|
||||
let fee_vec = &computer.mining.rewards.fees.base.sats.height;
|
||||
let tx_count_vec = &computer.transactions.count.total.base.height;
|
||||
let coinbase_vec = &computer.mining.rewards.coinbase.block.sats.height;
|
||||
let fee_vec = &computer.mining.rewards.fees.block.sats.height;
|
||||
let tx_count_vec = &computer.transactions.count.total.block.height;
|
||||
|
||||
let start = start_block.to_usize();
|
||||
let end = end_block.to_usize() + 1;
|
||||
|
||||
Reference in New Issue
Block a user