program-test: Add large bootstrap stake for realistic warmups (backport #16739) (#16741)

* program-test: Add large bootstrap stake for realistic warmups (#16739)

(cherry picked from commit f4214637a9)

# Conflicts:
#	program-test/Cargo.toml

* Fix merge conflict

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
This commit is contained in:
mergify[bot]
2021-04-22 23:07:52 +00:00
committed by GitHub
parent fadf1efa41
commit 5f5fa38d85
4 changed files with 38 additions and 3 deletions

View File

@@ -662,7 +662,8 @@ impl ProgramTest {
let rent = Rent::default();
let fee_rate_governor = FeeRateGovernor::default();
let bootstrap_validator_pubkey = Pubkey::new_unique();
let bootstrap_validator_stake_lamports = rent.minimum_balance(VoteState::size_of());
let bootstrap_validator_stake_lamports =
rent.minimum_balance(VoteState::size_of()) + sol_to_lamports(1_000_000.0);
let mint_keypair = Keypair::new();
let voting_keypair = Keypair::new();