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