Skip to content

Commit

Permalink
No need to start 2nd get_block_with_limit call with first block again
Browse files Browse the repository at this point in the history
  • Loading branch information
CriesofCarrots committed Jan 17, 2024
1 parent 2ebf1f1 commit c2b1d6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,8 @@ impl JsonRpcRequestProcessor {

let block_list = self
.get_blocks_with_limit(
first_slot_in_epoch,
partition_data.num_partitions + 1,
first_slot_in_epoch + 1,
partition_data.num_partitions,
config.commitment,
)
.await?;
Expand Down

0 comments on commit c2b1d6a

Please sign in to comment.