From e664746f043f1e1f39c56e5c97935670cbcbffbd Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Wed, 8 Feb 2017 20:52:18 +0100 Subject: [PATCH] More knownNodes init - also init children if they are missing --- src/bitmessagemain.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index e0da839d..3f28cd87 100755 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -71,6 +71,10 @@ def connectToStream(streamNumber): with knownnodes.knownNodesLock: if streamNumber not in knownnodes.knownNodes: knownnodes.knownNodes[streamNumber] = {} + if streamNumber*2 not in knownnodes.knownNodes: + knownnodes.knownNodes[streamNumber*2] = {} + if streamNumber*2+1 not in knownnodes.knownNodes: + knownnodes.knownNodes[streamNumber*2+1] = {} for i in range(maximumNumberOfHalfOpenConnections): a = outgoingSynSender()