fix bank-benching test

This commit is contained in:
Tao Zhu 2021-12-24 16:38:09 -06:00 committed by Tao Zhu
parent 3d6ab96587
commit f8c97a3d1f
1 changed files with 3 additions and 1 deletions

View File

@ -226,6 +226,7 @@ fn main() {
SocketAddrSpace::Unspecified,
);
let cluster_info = Arc::new(cluster_info);
let packet_deduper = PacketDeduper::default();
let banking_stage = BankingStage::new(
&cluster_info,
&poh_recorder,
@ -235,7 +236,7 @@ fn main() {
None,
replay_vote_sender,
Arc::new(RwLock::new(CostModel::default())),
PacketDeduper::default(),
packet_deduper.clone(),
);
poh_recorder.lock().unwrap().set_bank(&bank);
@ -350,6 +351,7 @@ fn main() {
// in this chunk, but since we rotate between CHUNKS then
// we should clear them by the time we come around again to re-use that chunk.
bank.clear_signatures();
packet_deduper.reset();
total_us += duration_as_us(&now.elapsed());
debug!(
"time: {} us checked: {} sent: {}",