Switch defaults to 12 hours for running peerConnectionScheduler (#5241)

This commit is contained in:
Chris Stewart 2023-09-21 09:26:40 -05:00 committed by GitHub
parent 3763a53ad5
commit c4f0bd3d39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

@ -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]] */