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 24, 2024
1 parent ffcec51 commit 6d5056e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions rpc/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,12 +601,6 @@ impl JsonRpcRequestProcessor {
.ok_or(RpcCustomError::BlockNotAvailable {
slot: first_slot_in_epoch,
})?;
let partitioned_epoch_reward_enabled_slot = bank
.feature_set
.activated_slot(&feature_set::enable_partitioned_epoch_reward::id());
let partitioned_epoch_reward_enabled = partitioned_epoch_reward_enabled_slot
.map(|slot| slot <= first_confirmed_block_in_epoch)
.unwrap_or(false);

let mut reward_map: HashMap<String, (Reward, Slot)> = {
let addresses: Vec<String> =
Expand Down

0 comments on commit 6d5056e

Please sign in to comment.