Skip to content

Commit

Permalink
explicitly sets fee rate to zero for stake-accounts tests (solana-lab…
Browse files Browse the repository at this point in the history
…s#34848)

explicitly sets fee rate to zero
  • Loading branch information
tao-stones authored Jan 19, 2024
1 parent 8e5cf13 commit fc53fd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stake-accounts/src/stake_accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ mod tests {
};

fn create_bank(lamports: u64) -> (Arc<Bank>, Keypair, u64, u64) {
let (genesis_config, mint_keypair) = create_genesis_config(lamports);
let (mut genesis_config, mint_keypair) = create_genesis_config(lamports);
genesis_config.fee_rate_governor = solana_sdk::fee_calculator::FeeRateGovernor::new(0, 0);
let bank = Bank::new_with_bank_forks_for_tests(&genesis_config).0;
let stake_rent = bank.get_minimum_balance_for_rent_exemption(StakeStateV2::size_of());
let system_rent = bank.get_minimum_balance_for_rent_exemption(0);
Expand Down

0 comments on commit fc53fd9

Please sign in to comment.