electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit a81b0ecc591babb684e908c37c4e5e62145701c6
parent ae579419818e3db20a98c6ac8dd810defa3de125
Author: SomberNight <somber.night@protonmail.com>
Date:   Wed, 23 Sep 2020 21:39:31 +0200

daemon/rpc: include "jsonrpc" key in rpc responses

fixes #6612

Diffstat:
Melectrum/daemon.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 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)