Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
test_bank_update_rewards_determinism works with write cache (#29043)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington authored Dec 2, 2022
1 parent 6852d57 commit 00ba78b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10416,6 +10416,8 @@ pub(crate) mod tests {
assert_ne!(bank1.capitalization(), bank.capitalization());

bank1.freeze();
add_root_and_flush_write_cache(&bank);
add_root_and_flush_write_cache(&bank1);
assert!(bank1.calculate_and_verify_capitalization(true));

// verify voting and staking rewards are recorded
Expand Down

0 comments on commit 00ba78b

Please sign in to comment.