Skip to content

Commit

Permalink
Adjust the ratio of the in-peers/out-peers (paritytech#13477)
Browse files Browse the repository at this point in the history
Establish fewer outbound connections in an attempt to allow publicly
available nodes to accept more full nodes.

Maintain the overall number of connections node should establish.
  • Loading branch information
altonen authored and ukint-vs committed Apr 10, 2023
1 parent 95ef36d commit b906470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/cli/src/params/network_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ pub struct NetworkParams {
pub allow_private_ip: bool,

/// Specify the number of outgoing connections we're trying to maintain.
#[arg(long, value_name = "COUNT", default_value_t = 15)]
#[arg(long, value_name = "COUNT", default_value_t = 8)]
pub out_peers: u32,

/// Maximum number of inbound full nodes peers.
#[arg(long, value_name = "COUNT", default_value_t = 25)]
#[arg(long, value_name = "COUNT", default_value_t = 32)]
pub in_peers: u32,

/// Maximum number of inbound light nodes peers.
Expand Down

0 comments on commit b906470

Please sign in to comment.