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 22, 2024
1 parent 16f2ab5 commit f43097e
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 @@ -2106,9 +2106,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 f43097e

Please sign in to comment.