Skip to content

Commit

Permalink
Use same stakes for everything in get_epoch_reward_calculate_param_in…
Browse files Browse the repository at this point in the history
…fo (#787)
  • Loading branch information
CriesofCarrots authored Apr 13, 2024
1 parent 864e044 commit 97799e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2421,7 +2421,7 @@ impl Bank {
&self,
stakes: &'a Stakes<StakeAccount<Delegation>>,
) -> EpochRewardCalculateParamInfo<'a> {
let stake_history = self.stakes_cache.stakes().history().clone();
let stake_history = stakes.history().clone();

let stake_delegations = self.filter_stake_delegations(stakes);

Expand Down

0 comments on commit 97799e4

Please sign in to comment.