Fix typos (#32420)
* typo * more typos --------- Co-authored-by: HaoranYi <haoran.yi@solana.com>
This commit is contained in:
parent
8a635ba41b
commit
a3171d3de2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue