Skip to content

Commit

Permalink
Refactor epoch reward 2 (solana-labs#27257)
Browse files Browse the repository at this point in the history
* refactor: extract store_stake_accounts fn

* refactor: extract store_vote_account fn

* clippy: slice

* clippy: slice

* fix merge error

Co-authored-by: haoran <haoran@mbook>
  • Loading branch information
HaoranYi and haoran committed Aug 21, 2022
1 parent 4b4af89 commit 2f0d355
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3272,6 +3272,7 @@ impl Bank {
m.stop();
metrics.store_vote_accounts_us.fetch_add(m.as_us(), Relaxed);
vote_rewards
<<<<<<< HEAD
}

fn update_reward_history(
Expand All @@ -3298,6 +3299,8 @@ impl Bank {
metrics
.store_stake_accounts_us
.fetch_add(m.as_us(), Relaxed);
=======
>>>>>>> c17f15a34f (Refactor epoch reward 2 (#27257))
}

fn update_recent_blockhashes_locked(&self, locked_blockhash_queue: &BlockhashQueue) {
Expand Down

0 comments on commit 2f0d355

Please sign in to comment.