From 25908feef977f07695c77d3f0f7465d3cbce7907 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 13 Jun 2019 16:22:57 -0700 Subject: [PATCH] Fund accounts with the worst-case fee --- bench-tps/src/bench.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench-tps/src/bench.rs b/bench-tps/src/bench.rs index cb5f224d9c..9a4c6698e0 100644 --- a/bench-tps/src/bench.rs +++ b/bench-tps/src/bench.rs @@ -615,7 +615,7 @@ pub fn generate_and_fund_keypairs( if lamports_per_account > last_keypair_balance { let (_, fee_calculator) = client.get_recent_blockhash().unwrap(); let extra = - lamports_per_account - last_keypair_balance + fee_calculator.lamports_per_signature; + lamports_per_account - last_keypair_balance + fee_calculator.max_lamports_per_signature; let total = extra * (keypairs.len() as u64); if client.get_balance(&funding_pubkey.pubkey()).unwrap_or(0) < total { airdrop_lamports(client, &drone_addr.unwrap(), funding_pubkey, total)?; @@ -626,7 +626,7 @@ pub fn generate_and_fund_keypairs( funding_pubkey, &keypairs, total, - fee_calculator.lamports_per_signature, + fee_calculator.max_lamports_per_signature, ); }