1
0

websocket: migrate to scripthashes

This commit is contained in:
SomberNight
2018-01-16 16:02:58 +01:00
parent 58d889e480
commit 5ec3d2888f
2 changed files with 12 additions and 5 deletions

View File

@@ -604,6 +604,9 @@ class Network(util.DaemonThread):
elif method == 'blockchain.scripthash.subscribe':
response['params'] = [params[0]] # addr
response['result'] = params[1]
elif method == 'blockchain.address.subscribe':
response['params'] = [params[0]]
response['result'] = params[1]
callbacks = self.subscriptions.get(k, [])
# update cache if it's a subscription