Skip to content

Commit

Permalink
Add comment about retaining feature activation slot logic
Browse files Browse the repository at this point in the history
  • Loading branch information
CriesofCarrots committed Jun 20, 2024
1 parent 03a48b8 commit 68df864
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rpc/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,10 @@ impl JsonRpcRequestProcessor {
// Determine if partitioned epoch rewards were enabled for the desired
// epoch
let bank = self.get_bank_with_config(context_config)?;

// DO NOT CLEAN UP with feature_set::enable_partitioned_epoch_reward
// This logic needs to be retained indefinitely to support historical
// rewards before and after feature activation.
let partitioned_epoch_reward_enabled_slot = bank
.feature_set
.activated_slot(&feature_set::enable_partitioned_epoch_reward::id());
Expand Down

0 comments on commit 68df864

Please sign in to comment.