Skip to content

Commit

Permalink
vote does not accept unstaked connections
Browse files Browse the repository at this point in the history
  • Loading branch information
lijunwangs committed Dec 20, 2024
1 parent c2af87f commit 88323a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion validator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2105,9 +2105,10 @@ pub fn main() {
};

// Vote shares TPU forward's characteristics, except that we accept 1 connection
// per peer.
// per peer and no unstaked connections are accepted.
let mut vote_quic_server_config = tpu_fwd_quic_server_config.clone();
vote_quic_server_config.max_connections_per_peer = 1;
vote_quic_server_config.max_unstaked_connections = 0;

let validator = match Validator::new(
node,
Expand Down

0 comments on commit 88323a3

Please sign in to comment.