mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 05:43:51 +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
|
enable-peer-discovery = true
|
||||||
|
|
||||||
# time interval for trying next set of peers in peer discovery
|
# 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
|
# 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 maxPeerSearchCount: Int = 8
|
||||||
|
|
||||||
private val initialDelay: FiniteDuration = 30.minute
|
private val initialDelay: FiniteDuration = 12.hour
|
||||||
|
|
||||||
private val isConnectionSchedulerRunning = new AtomicBoolean(false)
|
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")) {
|
if (config.hasPath("bitcoin-s.node.try-peers-interval")) {
|
||||||
val duration = config.getDuration("bitcoin-s.node.try-peers-interval")
|
val duration = config.getDuration("bitcoin-s.node.try-peers-interval")
|
||||||
TimeUtil.durationToFiniteDuration(duration)
|
TimeUtil.durationToFiniteDuration(duration)
|
||||||
} else 1.hour
|
} else 12.hour
|
||||||
}
|
}
|
||||||
|
|
||||||
/** timeout to wait for response the messages extend [[org.bitcoins.core.p2p.ExpectsResponse]] */
|
/** timeout to wait for response the messages extend [[org.bitcoins.core.p2p.ExpectsResponse]] */
|
||||||
|
Loading…
Reference in New Issue
Block a user