mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-18 13:24:25 +01:00
Bump max connected peers default to 2 (#5515)
This commit is contained in:
parent
4bb1724080
commit
302110cb56
@ -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
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user