remove block limit for bench tests to avoid skew test result (#23204)
This commit is contained in:
parent
a102453bae
commit
3c235503de
|
@ -175,6 +175,11 @@ fn main() {
|
||||||
let mut bank_forks = BankForks::new(bank0);
|
let mut bank_forks = BankForks::new(bank0);
|
||||||
let mut bank = bank_forks.working_bank();
|
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);
|
info!("threads: {} txs: {}", num_threads, total_num_transactions);
|
||||||
|
|
||||||
let same_payer = matches.is_present("same_payer");
|
let same_payer = matches.is_present("same_payer");
|
||||||
|
@ -335,6 +340,13 @@ fn main() {
|
||||||
bank = bank_forks.working_bank();
|
bank = bank_forks.working_bank();
|
||||||
insert_time.stop();
|
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);
|
poh_recorder.lock().unwrap().set_bank(&bank);
|
||||||
assert!(poh_recorder.lock().unwrap().bank().is_some());
|
assert!(poh_recorder.lock().unwrap().bank().is_some());
|
||||||
if bank.slot() > 32 {
|
if bank.slot() > 32 {
|
||||||
|
|
Loading…
Reference in New Issue