fixed bug in router initialization
This commit is contained in:
parent
29c9afbc03
commit
61631b21db
@ -9,7 +9,7 @@ from kademlia.log import Logger
|
||||
class KademliaProtocol(RPCProtocol):
|
||||
def __init__(self, sourceNode, storage, ksize):
|
||||
RPCProtocol.__init__(self)
|
||||
self.router = RoutingTable(self, sourceNode, ksize)
|
||||
self.router = RoutingTable(self, ksize, sourceNode)
|
||||
self.storage = storage
|
||||
self.sourceID = sourceNode.id
|
||||
self.log = Logger(system=self)
|
||||
|
Loading…
Reference in New Issue
Block a user