aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/python-rpc/framework/daemon.py12
-rw-r--r--utils/python-rpc/framework/wallet.py3
2 files changed, 13 insertions, 2 deletions
diff --git a/utils/python-rpc/framework/daemon.py b/utils/python-rpc/framework/daemon.py
index 074f8de37..435bc93f8 100644
--- a/utils/python-rpc/framework/daemon.py
+++ b/utils/python-rpc/framework/daemon.py
@@ -465,7 +465,7 @@ class Daemon(object):
def in_peers(self, in_peers):
in_peers = {
- 'client': client,
+ 'in_peers': in_peers,
}
return self.rpc.send_request('/in_peers', in_peers)
@@ -554,6 +554,16 @@ class Daemon(object):
}
return self.rpc.send_json_rpc_request(flush_cache)
+ def sync_txpool(self):
+ sync_txpool = {
+ 'method': 'sync_txpool',
+ 'params': {
+ },
+ 'jsonrpc': '2.0',
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(sync_txpool)
+
def rpc_access_info(self, client):
rpc_access_info = {
'method': 'rpc_access_info',
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py
index ac9ba2d3a..d97c24143 100644
--- a/utils/python-rpc/framework/wallet.py
+++ b/utils/python-rpc/framework/wallet.py
@@ -706,13 +706,14 @@ class Wallet(object):
}
return self.rpc.send_json_rpc_request(check_reserve_proof)
- def sign(self, data, account_index = 0, address_index = 0):
+ def sign(self, data, account_index = 0, address_index = 0, signature_type = ""):
sign = {
'method': 'sign',
'params' : {
'data': data,
'account_index': account_index,
'address_index': address_index,
+ 'signature_type': signature_type,
},
'jsonrpc': '2.0',
'id': '0'