mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-28 19:55:20 +08:00
chore: cargo fmt
This commit is contained in:
@@ -453,7 +453,8 @@ impl BitcoinIndexer {
|
||||
// * needs the last difficulty interval of headers (note that the current
|
||||
// interval is `start_block / BLOCK_DIFFICULTY_CHUNK_SIZE - 1).
|
||||
// * needs the last interval's chain work calculation
|
||||
let interval_start_block = (start_block / BLOCK_DIFFICULTY_CHUNK_SIZE).saturating_sub(2);
|
||||
let interval_start_block =
|
||||
(start_block / BLOCK_DIFFICULTY_CHUNK_SIZE).saturating_sub(2);
|
||||
let base_block = interval_start_block * BLOCK_DIFFICULTY_CHUNK_SIZE;
|
||||
let interval_headers =
|
||||
canonical_spv_client.read_block_headers(base_block, start_block + 1)?;
|
||||
|
||||
Reference in New Issue
Block a user