diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 8594d4cc091d7b..3862382bb56bb0 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -3199,11 +3199,11 @@ impl Bank { point_value.rewards as f64 / point_value.points as f64 } - fn store_stake_accounts(&self, stake_rewards: &Vec, metrics: &mut RewardsMetrics) { + fn store_stake_accounts(&self, stake_rewards: &[StakeReward], metrics: &mut RewardsMetrics) { // store stake account even if stakers_reward is 0 // because credits observed has changed let mut m = Measure::start("store_stake_account"); - self.store_accounts((self.slot(), &stake_rewards[..])); + self.store_accounts((self.slot(), stake_rewards)); m.stop(); metrics .store_stake_accounts_us