From 81a6af9624e7dc16b0362a33537a917d1895bb0d Mon Sep 17 00:00:00 2001 From: Ignotus Peverell Date: Wed, 24 Apr 2019 15:04:59 -0700 Subject: [PATCH] Increase peer max count significantly (#2754) * Increase peer max count significantly * Reduce limit to 125, like bitcoin --- config/src/comments.rs | 2 +- p2p/src/types.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/src/comments.rs b/config/src/comments.rs index 3409dbca..68d5b131 100644 --- a/config/src/comments.rs +++ b/config/src/comments.rs @@ -229,7 +229,7 @@ fn comments() -> HashMap { #ban_window = 10800 #maximum number of peers -#peer_max_count = 25 +#peer_max_count = 125 #preferred minimum number of peers (we'll actively keep trying to add peers #until we get to at least this number diff --git a/p2p/src/types.rs b/p2p/src/types.rs index 952e4a02..b431b718 100644 --- a/p2p/src/types.rs +++ b/p2p/src/types.rs @@ -49,7 +49,7 @@ pub const MAX_LOCATORS: u32 = 20; const BAN_WINDOW: i64 = 10800; /// The max peer count -const PEER_MAX_COUNT: u32 = 25; +const PEER_MAX_COUNT: u32 = 125; /// min preferred peer count const PEER_MIN_PREFERRED_COUNT: u32 = 8;