test-validator: hold rent constant with --slots-per-epoch (#18318)

(cherry picked from commit 02b14caa5f)

Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
mergify[bot]
2021-06-30 08:37:54 +00:00
committed by GitHub
parent 57f76a2111
commit 2fdda2ec1b
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 {