chore(cli): fix displayed block range in merkle debug script (#8091)

This commit is contained in:
Roman Krasiuk
2024-05-04 14:55:03 +02:00
committed by GitHub
parent bff14c603f
commit 4b78706ed6

View File

@ -164,7 +164,7 @@ impl Command {
assert!(best_block_number < self.to, "Nothing to run"); assert!(best_block_number < self.to, "Nothing to run");
// get the block range from the network // get the block range from the network
let block_range = best_block_number..=self.to; let block_range = best_block_number + 1..=self.to;
info!(target: "reth::cli", ?block_range, "Downloading range of blocks"); info!(target: "reth::cli", ?block_range, "Downloading range of blocks");
let blocks = block_range_client let blocks = block_range_client
.get_full_block_range(to_header.hash_slow(), self.to - best_block_number) .get_full_block_range(to_header.hash_slow(), self.to - best_block_number)