* typo

* more typos

---------

Co-authored-by: HaoranYi <haoran.yi@solana.com>
This commit is contained in:
HaoranYi 2023-07-07 16:05:32 -05:00 committed by GitHub
parent 8a635ba41b
commit a3171d3de2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -12605,7 +12605,7 @@ fn test_epoch_credit_rewards_and_history_update() {
}
#[test]
/// Test rewards compuation and partitioned rewards distribution at the epoch boundary
/// Test rewards computation and partitioned rewards distribution at the epoch boundary
fn test_rewards_computation() {
solana_logger::setup();
@ -12714,8 +12714,8 @@ fn test_rewards_computation_and_partitioned_distribution() {
} else if slot == num_slots_in_epoch + 1 || slot == num_slots_in_epoch + 2 {
// 1. when curr_slot == num_slots_in_epoch + 1, the 2nd block of epoch 1, reward distribution should happen in this block.
// however, all stake rewards are paid at the this block therefore reward_status should have transitioned to inactive. And since
// rewards are transfered from epoch_rewards sysvar to stake accounts. The cap should stay the same.
// 2. when curr_slot == num_slots_in_epoch+2, the 3rd block of epoch 1. reward distribution should have already completed. Thefore,
// rewards are transferred from epoch_rewards sysvar to stake accounts. The cap should stay the same.
// 2. when curr_slot == num_slots_in_epoch+2, the 3rd block of epoch 1. reward distribution should have already completed. Therefore,
// reward_status should stay inactive and cap should stay the same.
assert!(matches!(
curr_bank.get_reward_interval(),
@ -12838,7 +12838,7 @@ fn test_program_execution_restricted_for_stake_account_in_reward_period() {
}
}
/// Test rewards compuation and partitioned rewards distribution at the epoch boundary
/// Test rewards computation and partitioned rewards distribution at the epoch boundary
#[test]
fn test_store_stake_accounts_in_partition() {
let (genesis_config, _mint_keypair) = create_genesis_config(1_000_000 * LAMPORTS_PER_SOL);