Use a separate channel to process votes in banking stage (#3861)

- This will help expedite the vote processing on peer nodes
This commit is contained in:
Pankaj Garg
2019-04-17 21:07:45 -07:00
committed by GitHub
parent 26a7eb6fa5
commit 2f4a3ed190
3 changed files with 65 additions and 11 deletions

View File

@@ -55,15 +55,21 @@ impl Tpu {
let sigverify_stage =
SigVerifyStage::new(packet_receiver, sigverify_disabled, verified_sender.clone());
let (verified_vote_sender, verified_vote_receiver) = channel();
let cluster_info_vote_listener = ClusterInfoVoteListener::new(
&exit,
cluster_info.clone(),
sigverify_disabled,
verified_sender,
verified_vote_sender,
&poh_recorder,
);
let banking_stage = BankingStage::new(&cluster_info, poh_recorder, verified_receiver);
let banking_stage = BankingStage::new(
&cluster_info,
poh_recorder,
verified_receiver,
verified_vote_receiver,
);
let broadcast_stage = BroadcastStage::new(
broadcast_socket,