From a81b0ecc591babb684e908c37c4e5e62145701c6 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 23 Sep 2020 21:39:31 +0200 Subject: [PATCH] daemon/rpc: include "jsonrpc" key in rpc responses fixes #6612 --- electrum/daemon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/electrum/daemon.py b/electrum/daemon.py index cf64aac86..480da28e4 100644 --- a/electrum/daemon.py +++ b/electrum/daemon.py @@ -196,7 +196,10 @@ class AuthenticatedServer(Logger): except Exception as e: self.logger.exception("invalid request") return web.Response(text='Invalid Request', status=500) - response = {'id': _id} + response = { + 'id': _id, + 'jsonrpc': '2.0', + } try: if isinstance(params, dict): response['result'] = await f(**params)