From ec52c81f466453934ad8313fc0737d1c216f66e3 Mon Sep 17 00:00:00 2001 From: aum <aum> Date: Sun, 15 Aug 2004 18:49:05 +0000 Subject: [PATCH] Eliminated incorrect truncation of retrieved keys --- apps/stasher/python/src/stasher.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/apps/stasher/python/src/stasher.py b/apps/stasher/python/src/stasher.py index 2c1d1c5179..514ce276d9 100644 --- a/apps/stasher/python/src/stasher.py +++ b/apps/stasher/python/src/stasher.py @@ -2200,6 +2200,7 @@ class KRpcFindData(KRpcFindNode): value = self.localNode.storage.getKey(self.hashWanted.asHex(), keyIsHashed=True) if value != None: self.log(4, "Found required value in local storage") + self.log(4, "VALUE='%s'" % value) self.returnValue(value) return @@ -2219,6 +2220,20 @@ class KRpcFindData(KRpcFindNode): KRpcFindNode.on_reply(self, peer, msgId, **details) #@-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 #@-node:class KRpcFindData -- GitLab