Skip to content

Commit

Permalink
fix: tweak fetching of previous block hashes (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare authored Jul 9, 2024
1 parent d02e150 commit 4a1b42a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zero_bin/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ where
std::iter::successors(Some(target_block_number as i128 - 1 + odd_offset), |&it| {
Some(it - 1)
})
.take(PREVIOUS_HASHES_COUNT)
.take(PREVIOUS_HASHES_COUNT + 1)
.filter(|i| *i >= 0)
.collect::<Vec<_>>();
let concurrency = previous_block_numbers.len();
Expand Down

0 comments on commit 4a1b42a

Please sign in to comment.