test-validator: hold rent constant with --slots-per-epoch

This commit is contained in:
Trent Nelson
2021-06-09 20:54:13 -06:00
committed by Trent Nelson
parent 9d4428d3d8
commit 02b14caa5f
3 changed files with 16 additions and 1 deletions

View File

@ -17,6 +17,7 @@ use {
epoch_schedule::{EpochSchedule, MINIMUM_SLOTS_PER_EPOCH},
native_token::sol_to_lamports,
pubkey::Pubkey,
rent::Rent,
rpc_port,
signature::{read_keypair_file, write_keypair_file, Keypair, Signer},
system_program,
@ -561,6 +562,8 @@ fn main() {
slots_per_epoch,
/* enable_warmup_epochs = */ false,
));
genesis.rent = Rent::with_slots_per_epoch(slots_per_epoch);
}
if let Some(gossip_host) = gossip_host {