fix cache with h2addr

This commit is contained in:
ThomasV 2017-09-30 13:01:33 +02:00
parent 34628533fb
commit 031b911dce
1 changed files with 4 additions and 3 deletions

View File

@ -619,10 +619,11 @@ class Network(util.DaemonThread):
def overload_cb(self, callback):
def cb2(x):
p = x.pop('params')
x2 = x.copy()
p = x2.pop('params')
addr = self.h2addr[p[0]]
x['params'] = [addr]
callback(x)
x2['params'] = [addr]
callback(x2)
return cb2
def subscribe_to_addresses(self, addresses, callback):