perf(net): increase default concurrent outbound dials to 30 (#22744)

Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Matthias Seitz
2026-03-03 16:21:39 +01:00
committed by GitHub
parent a5d8fa3ae1
commit eaa39eb99a
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
reth-network-types: patch
---
Increased default maximum concurrent outbound dials from 15 to 30.

View File

@@ -22,7 +22,7 @@ pub const DEFAULT_MAX_COUNT_PEERS_INBOUND: u32 = 30;
/// Maximum number of available slots for concurrent outgoing dials.
///
/// This restricts how many outbound dials can be performed concurrently.
pub const DEFAULT_MAX_COUNT_CONCURRENT_OUTBOUND_DIALS: usize = 15;
pub const DEFAULT_MAX_COUNT_CONCURRENT_OUTBOUND_DIALS: usize = 30;
/// A temporary timeout for ips on incoming connection attempts.
pub const INBOUND_IP_THROTTLE_DURATION: Duration = Duration::from_secs(30);