Bump max connected peers default to 2 (#5515)

This commit is contained in:
Chris Stewart 2024-04-08 09:14:28 -05:00 committed by GitHub
parent 4bb1724080
commit 302110cb56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 = {