Refactor packet deduplication and harden bench test (#22080)

This commit is contained in:
Justin Starry
2021-12-22 23:05:10 -06:00
committed by GitHub
parent f10407dbc3
commit 93c776ce19
6 changed files with 98 additions and 55 deletions

View File

@@ -5,7 +5,7 @@ use {
log::*,
rand::{thread_rng, Rng},
rayon::prelude::*,
solana_core::banking_stage::BankingStage,
solana_core::{banking_stage::BankingStage, packet_deduper::PacketDeduper},
solana_gossip::cluster_info::{ClusterInfo, Node},
solana_ledger::{
blockstore::Blockstore,
@@ -235,6 +235,7 @@ fn main() {
None,
replay_vote_sender,
Arc::new(RwLock::new(CostModel::default())),
PacketDeduper::default(),
);
poh_recorder.lock().unwrap().set_bank(&bank);