From 302110cb56c13807f1aeaabeeda2c47f208cd6db Mon Sep 17 00:00:00 2001 From: Chris Stewart Date: Mon, 8 Apr 2024 09:14:28 -0500 Subject: [PATCH] Bump max connected peers default to 2 (#5515) --- docs/config/configuration.md | 2 +- .../src/main/scala/org/bitcoins/node/config/NodeAppConfig.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/config/configuration.md b/docs/config/configuration.md index 061ddf0584..1ca3212050 100644 --- a/docs/config/configuration.md +++ b/docs/config/configuration.md @@ -157,7 +157,7 @@ bitcoin-s { enable-peer-discovery = true # number of persistent peer connections to maintain for node use - maxConnectedPeers = 1 + maxConnectedPeers = 2 # time interval for trying next set of peers in peer discovery try-peers-interval = 12 hour diff --git a/node/src/main/scala/org/bitcoins/node/config/NodeAppConfig.scala b/node/src/main/scala/org/bitcoins/node/config/NodeAppConfig.scala index 5a0eff2ddb..034ddc69c4 100644 --- a/node/src/main/scala/org/bitcoins/node/config/NodeAppConfig.scala +++ b/node/src/main/scala/org/bitcoins/node/config/NodeAppConfig.scala @@ -125,7 +125,7 @@ case class NodeAppConfig(baseDatadir: Path, configOverrides: Vector[Config])( lazy val maxConnectedPeers: Int = { if (config.hasPath("bitcoin-s.node.maxConnectedPeers")) config.getInt("bitcoin-s.node.maxConnectedPeers") - else 1 + else 2 } lazy val enablePeerDiscovery: Boolean = {