diff --git a/kademlia/protocol.py b/kademlia/protocol.py index a9c06e4..e64e9cc 100644 --- a/kademlia/protocol.py +++ b/kademlia/protocol.py @@ -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)