commit 031b911dce818c4c005663e770b4784234bc5590
parent 34628533fb5310d9ae78d54e53cbdc7c095c8ad5
Author: ThomasV <thomasv@electrum.org>
Date: Sat, 30 Sep 2017 13:01:33 +0200
fix cache with h2addr
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lib/network.py b/lib/network.py
@@ -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):