fix bug on dandelion specific with Python3

This commit is contained in:
Kashiko Koibumi 2024-05-31 13:17:17 +09:00
parent 1ec1b57190
commit c59b9e6df1
No known key found for this signature in database
GPG Key ID: 8F06E069E37C40C4

View File

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