Correct jsonrpc version json key

This commit is contained in:
nolash
2021-04-23 22:02:47 +02:00
parent 729ada00e2
commit 6cbaa22a7d
2 changed files with 3 additions and 3 deletions

View File

@@ -143,7 +143,7 @@ methods = {
def jsonrpc_error(rpc_id, err):
return {
'json-rpc': '2.0',
'jsonrpc': '2.0',
'id': rpc_id,
'error': {
'code': err.CODE,
@@ -154,7 +154,7 @@ def jsonrpc_error(rpc_id, err):
def jsonrpc_ok(rpc_id, response):
return {
'json-rpc': '2.0',
'jsonrpc': '2.0',
'id': rpc_id,
'result': response,
}