aboutsummaryrefslogtreecommitdiff
path: root/utils/python-rpc/framework/daemon.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/python-rpc/framework/daemon.py')
-rw-r--r--utils/python-rpc/framework/daemon.py12
1 files changed, 11 insertions, 1 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',