mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2024-11-19 09:52:09 +01:00
Bump node initialization timeout to 20 seconds (#4328)
This commit is contained in:
parent
6356a50a89
commit
b980c432fd
@ -104,8 +104,9 @@ trait Node extends NodeApi with ChainQueryApi with P2PLogger {
|
||||
val isInitializedF = AsyncUtil
|
||||
.retryUntilSatisfiedF(
|
||||
() => peerManager.peerDataOf(peer).peerMessageSender.isInitialized(),
|
||||
maxTries = 50,
|
||||
interval = 250.millis)
|
||||
maxTries = 20,
|
||||
interval = 1.second
|
||||
) //20 seconds
|
||||
isInitializedF.failed
|
||||
.foreach { err =>
|
||||
logger.error(s"Failed to initialize with peer=$peer with err=$err")
|
||||
|
Loading…
Reference in New Issue
Block a user