Re-assess Lighthouse's peer count for Fusaka (#7877)

This commit is contained in:
Age Manning
2025-08-21 16:12:53 +10:00
committed by GitHub
parent f19d4f6af1
commit c9ffdf7f71
3 changed files with 4 additions and 9 deletions

View File

@@ -341,7 +341,7 @@ impl Default for Config {
enr_udp6_port: None,
enr_quic6_port: None,
enr_tcp6_port: None,
target_peers: 100,
target_peers: 200,
discv5_config,
boot_nodes_enr: vec![],
boot_nodes_multiaddr: vec![],
@@ -352,7 +352,7 @@ impl Default for Config {
disable_discovery: false,
disable_quic_support: false,
upnp_enabled: true,
network_load: 4,
network_load: 3,
private: false,
subscribe_all_data_column_subnets: false,
subscribe_all_subnets: false,
@@ -421,8 +421,8 @@ impl From<u8> for NetworkLoad {
mesh_n_low: 4,
outbound_min: 3,
mesh_n: 8,
mesh_n_high: 12,
gossip_lazy: 3,
mesh_n_high: 10,
gossip_lazy: 2,
history_gossip: 3,
heartbeat_interval: Duration::from_millis(1000),
},

View File

@@ -236,7 +236,6 @@ pub fn cli_app() -> Command {
.long("network-load")
.value_name("INTEGER")
.help("Lighthouse's network can be tuned for bandwidth/performance. Setting this to a high value, will increase the bandwidth lighthouse uses, increasing the likelihood of redundant information in exchange for faster communication. This can increase profit of validators marginally by receiving messages faster on the network. Lower values decrease bandwidth usage, but makes communication slower which can lead to validator performance reduction. Values are in the range [1,5].")
.default_value("3")
.hide(true)
.action(ArgAction::Set)
.display_order(0)

View File

@@ -1467,10 +1467,6 @@ pub fn set_network_config(
if parse_flag(cli_args, "proposer-only") {
config.subscribe_all_subnets = false;
if cli_args.get_one::<String>("target-peers").is_none() {
// If a custom value is not set, change the default to 15
config.target_peers = 15;
}
config.proposer_only = true;
warn!(
info = "Proposer-only mode enabled",