return self.node.senderDict()
def xmlrpc_find_node(self, target, sender):
- nodes = self.table.findNodes(target)
+ nodes = self.table.findNodes(target.data)
nodes = map(lambda node: node.senderDict(), nodes)
ip = self.crequest.getClientIP()
sender['host'] = ip
return df
def findNode(self, target, sender):
df = Deferred()
- f = factory('find_node', (target, sender), df.callback, df.errback)
+ f = factory('find_node', (Binary(target), sender), df.callback, df.errback)
reactor.connectTCP(self.host, self.port, f)
return df
def storeValue(self, key, value, sender):