mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-18 21:34:39 +01:00
Switch defaults to 12 hours for running peerConnectionScheduler (#5241)
This commit is contained in:
parent
3763a53ad5
commit
c4f0bd3d39
@ -52,7 +52,7 @@ bitcoin-s {
|
||||
enable-peer-discovery = true
|
||||
|
||||
# time interval for trying next set of peers in peer discovery
|
||||
try-peers-interval = 1 hour
|
||||
try-peers-interval = 12 hour
|
||||
}
|
||||
|
||||
# You can configure SOCKS5 proxy to use Tor for outgoing connections
|
||||
|
@ -124,7 +124,7 @@ case class PeerFinder(
|
||||
|
||||
private val maxPeerSearchCount: Int = 8
|
||||
|
||||
private val initialDelay: FiniteDuration = 30.minute
|
||||
private val initialDelay: FiniteDuration = 12.hour
|
||||
|
||||
private val isConnectionSchedulerRunning = new AtomicBoolean(false)
|
||||
|
||||
|
@ -179,7 +179,7 @@ case class NodeAppConfig(baseDatadir: Path, configOverrides: Vector[Config])(
|
||||
if (config.hasPath("bitcoin-s.node.try-peers-interval")) {
|
||||
val duration = config.getDuration("bitcoin-s.node.try-peers-interval")
|
||||
TimeUtil.durationToFiniteDuration(duration)
|
||||
} else 1.hour
|
||||
} else 12.hour
|
||||
}
|
||||
|
||||
/** timeout to wait for response the messages extend [[org.bitcoins.core.p2p.ExpectsResponse]] */
|
||||
|
Loading…
Reference in New Issue
Block a user