X-Git-Url: https://git.novaco.in/?p=electrum-server.git;a=blobdiff_plain;f=processor.py;h=749f383b95ad476203db9b8c2d01d4bfd8b1c0b1;hp=8596625e7b92a8d53acaad3186818d48f616e918;hb=2135cbc2faab189d4b2a8eb5500a9a245be569f5;hpb=6037a6adcdb140a5a8b291d8d761bee2da320809 diff --git a/processor.py b/processor.py index 8596625..749f383 100644 --- a/processor.py +++ b/processor.py @@ -270,9 +270,6 @@ class ResponseDispatcher(threading.Thread): method = response.get('method') params = response.get('params') - if method == "blockchain.address.subscribe2": - method = "blockchain.address.subscribe" - # A notification if internal_id is None: # and method is not None and params is not None: self.notification(method, params, response) @@ -288,6 +285,8 @@ class ResponseDispatcher(threading.Thread): if session.stopped(): continue if session.contains_subscription(subdesc): + if response.get('method') == "blockchain.address.subscribe2": + response['method'] = "blockchain.address.subscribe" session.send_response(response) def send_response(self, internal_id, response):