Skip to content

Commit ba7ad3e

Browse files
committed
Fix off by one in reconstruction
1 parent 719e7ee commit ba7ad3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beacon_node/store/src/reconstruct.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ where
4747

4848
// If `num_blocks` is not specified iterate all blocks.
4949
let block_root_iter = self
50-
.forwards_block_roots_iterator_until(lower_limit_slot, upper_limit_slot, || {
50+
.forwards_block_roots_iterator_until(lower_limit_slot, upper_limit_slot - 1, || {
5151
panic!("FIXME(sproul): reconstruction doesn't need this state")
5252
})?
5353
.take(num_blocks.unwrap_or(usize::MAX));

0 commit comments

Comments
 (0)