Correct jsonrpc version json key
This commit is contained in:
parent
729ada00e2
commit
6cbaa22a7d
@ -143,7 +143,7 @@ methods = {
|
|||||||
|
|
||||||
def jsonrpc_error(rpc_id, err):
|
def jsonrpc_error(rpc_id, err):
|
||||||
return {
|
return {
|
||||||
'json-rpc': '2.0',
|
'jsonrpc': '2.0',
|
||||||
'id': rpc_id,
|
'id': rpc_id,
|
||||||
'error': {
|
'error': {
|
||||||
'code': err.CODE,
|
'code': err.CODE,
|
||||||
@ -154,7 +154,7 @@ def jsonrpc_error(rpc_id, err):
|
|||||||
|
|
||||||
def jsonrpc_ok(rpc_id, response):
|
def jsonrpc_ok(rpc_id, response):
|
||||||
return {
|
return {
|
||||||
'json-rpc': '2.0',
|
'jsonrpc': '2.0',
|
||||||
'id': rpc_id,
|
'id': rpc_id,
|
||||||
'result': response,
|
'result': response,
|
||||||
}
|
}
|
||||||
|
2
setup.py
2
setup.py
@ -33,7 +33,7 @@ f.close()
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="crypto-dev-signer",
|
name="crypto-dev-signer",
|
||||||
version="0.4.14b2",
|
version="0.4.14b3",
|
||||||
description="A signer and keystore daemon and library for cryptocurrency software development",
|
description="A signer and keystore daemon and library for cryptocurrency software development",
|
||||||
author="Louis Holbrook",
|
author="Louis Holbrook",
|
||||||
author_email="dev@holbrook.no",
|
author_email="dev@holbrook.no",
|
||||||
|
Loading…
Reference in New Issue
Block a user