More sensible timeout values for the Whisper/Waku handshake

This commit is contained in:
kdeme 2020-02-06 19:19:54 +01:00
parent 18799f1491
commit 419bc4730d
No known key found for this signature in database
GPG Key ID: 4E8DD21420AF43F5
2 changed files with 2 additions and 2 deletions

View File

@ -254,7 +254,7 @@ p2pProtocol Waku(version = wakuVersion,
topicInterest: wakuNet.config.topics)
let m = await peer.status(wakuVersion, list,
timeout = chronos.milliseconds(500))
timeout = chronos.milliseconds(5000))
if m.protocolVersion == wakuVersion:
debug "Waku peer", peer, wakuVersion

View File

@ -131,7 +131,7 @@ p2pProtocol Whisper(version = whisperVersion,
cast[uint64](whisperNet.config.powRequirement),
@(whisperNet.config.bloom),
whisperNet.config.isLightNode,
timeout = chronos.milliseconds(500))
timeout = chronos.milliseconds(5000))
if m.protocolVersion == whisperVersion:
debug "Whisper peer", peer, whisperVersion