I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit ec52c81f authored by aum's avatar aum Committed by zzz
Browse files

Eliminated incorrect truncation of retrieved keys

parent 0eb0c4cc
No related branches found
No related tags found
No related merge requests found
...@@ -2200,6 +2200,7 @@ class KRpcFindData(KRpcFindNode): ...@@ -2200,6 +2200,7 @@ class KRpcFindData(KRpcFindNode):
value = self.localNode.storage.getKey(self.hashWanted.asHex(), keyIsHashed=True) value = self.localNode.storage.getKey(self.hashWanted.asHex(), keyIsHashed=True)
if value != None: if value != None:
self.log(4, "Found required value in local storage") self.log(4, "Found required value in local storage")
self.log(4, "VALUE='%s'" % value)
self.returnValue(value) self.returnValue(value)
return return
...@@ -2219,6 +2220,20 @@ class KRpcFindData(KRpcFindNode): ...@@ -2219,6 +2220,20 @@ class KRpcFindData(KRpcFindNode):
KRpcFindNode.on_reply(self, peer, msgId, **details) KRpcFindNode.on_reply(self, peer, msgId, **details)
#@-node:on_reply #@-node:on_reply
#@+node:returnValue
def returnValue(self, items):
"""
override with a nicer call sig
"""
# a hack for testing - save this RPC object into the node
# so we can introspect it
self.localNode.lastrpc = self
self.reportStats()
KRpc.returnValue(self, items, nodes=items)
#@-node:returnValue
#@-others #@-others
#@-node:class KRpcFindData #@-node:class KRpcFindData
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment