mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 17:01:34 +00:00
fix cache with h2addr
This commit is contained in:
parent
34628533fb
commit
031b911dce
1 changed files with 4 additions and 3 deletions
|
@ -619,10 +619,11 @@ class Network(util.DaemonThread):
|
||||||
|
|
||||||
def overload_cb(self, callback):
|
def overload_cb(self, callback):
|
||||||
def cb2(x):
|
def cb2(x):
|
||||||
p = x.pop('params')
|
x2 = x.copy()
|
||||||
|
p = x2.pop('params')
|
||||||
addr = self.h2addr[p[0]]
|
addr = self.h2addr[p[0]]
|
||||||
x['params'] = [addr]
|
x2['params'] = [addr]
|
||||||
callback(x)
|
callback(x2)
|
||||||
return cb2
|
return cb2
|
||||||
|
|
||||||
def subscribe_to_addresses(self, addresses, callback):
|
def subscribe_to_addresses(self, addresses, callback):
|
||||||
|
|
Loading…
Add table
Reference in a new issue