Skip to content

Commit

Permalink
Fix iterator length when fetching block hashes (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare authored Jul 10, 2024
1 parent 10ce334 commit 8d5f15b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zero_bin/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ where
.into_iter()
.flatten()
.skip(odd_offset as usize)
.take(PREVIOUS_HASHES_COUNT)
.for_each(|(hash, block_num)| {
if let (Some(hash), Some(block_num)) = (hash, block_num) {
// Most recent previous block hash is expected at the end of the array
Expand Down

0 comments on commit 8d5f15b

Please sign in to comment.