From 3c235503de5153fa1a874f6add0ced3fc81e8fe6 Mon Sep 17 00:00:00 2001 From: Tao Zhu <82401714+taozhu-chicago@users.noreply.github.com> Date: Wed, 16 Feb 2022 21:44:34 -0600 Subject: [PATCH] remove block limit for bench tests to avoid skew test result (#23204) --- banking-bench/src/main.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/banking-bench/src/main.rs b/banking-bench/src/main.rs index 4a231dc7c9..2231a0423b 100644 --- a/banking-bench/src/main.rs +++ b/banking-bench/src/main.rs @@ -175,6 +175,11 @@ fn main() { let mut bank_forks = BankForks::new(bank0); let mut bank = bank_forks.working_bank(); + // set cost tracker limits to MAX so it will not filter out TXs + bank.write_cost_tracker() + .unwrap() + .set_limits(std::u64::MAX, std::u64::MAX, std::u64::MAX); + info!("threads: {} txs: {}", num_threads, total_num_transactions); let same_payer = matches.is_present("same_payer"); @@ -335,6 +340,13 @@ fn main() { bank = bank_forks.working_bank(); insert_time.stop(); + // set cost tracker limits to MAX so it will not filter out TXs + bank.write_cost_tracker().unwrap().set_limits( + std::u64::MAX, + std::u64::MAX, + std::u64::MAX, + ); + poh_recorder.lock().unwrap().set_bank(&bank); assert!(poh_recorder.lock().unwrap().bank().is_some()); if bank.slot() > 32 {