fix bug on dandelion specific with Python3

This commit is contained in:
Kashiko Koibumi 2024-05-31 13:17:17 +09:00
parent 597372543b
commit ba8ccfc488

View File

@ -190,8 +190,8 @@ class Dandelion: # pylint: disable=old-style-class
).outboundConnections.values()), MAX_STEMS)
# not enough stems available
except ValueError:
self.stem = network.connectionpool.BMConnectionPool(
).outboundConnections.values()
self.stem = list(network.connectionpool.BMConnectionPool(
).outboundConnections.values())
self.nodeMap = {}
# hashMap stays to cater for pending stems
self.refresh = time() + REASSIGN_INTERVAL