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

This commit is contained in:
Jon Cinque
2021-04-22 16:44:54 +02:00
committed by GitHub
parent 517a30e83d
commit f4214637a9
4 changed files with 38 additions and 3 deletions

View File

@ -672,7 +672,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();