Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry committed Jan 23, 2025
1 parent 8b44679 commit d32331b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sdk/feature-set/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1216,8 +1216,13 @@ impl FeatureSet {
// check the epoch of the slot when the new leader schedule feature was
// activated and then use the following epoch to start using the new
// leader schedule.
const NEW_LEADER_SCHEDULE_EPOCH_DELAY: u64 = 1;
self.activated_slot(&enable_vote_address_leader_schedule::id())
.map(|slot| epoch_schedule.get_epoch(slot) + 1)
.map(|slot| {
epoch_schedule
.get_epoch(slot)
.wrapping_add(NEW_LEADER_SCHEDULE_EPOCH_DELAY)
})
}

/// List of enabled features that trigger full inflation
Expand Down

0 comments on commit d32331b

Please sign in to comment.