From c6dc2850c20344b23342aea0fb56026eb17f32ca Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 27 May 2020 13:09:50 +0000 Subject: [PATCH 1/2] python-rpc: add missing sync_txpool python entry point --- utils/python-rpc/framework/daemon.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/utils/python-rpc/framework/daemon.py b/utils/python-rpc/framework/daemon.py index 074f8de37..996137814 100644 --- a/utils/python-rpc/framework/daemon.py +++ b/utils/python-rpc/framework/daemon.py @@ -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', From 6f5411d3059a94c6d73c1cf71d23b30fafbcd006 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 27 May 2020 13:10:23 +0000 Subject: [PATCH 2/2] tests: fix missing error on missing python entry point --- tests/functional_tests/check_missing_rpc_methods.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/functional_tests/check_missing_rpc_methods.py b/tests/functional_tests/check_missing_rpc_methods.py index 6fadebf9b..0eedd6d0f 100644 --- a/tests/functional_tests/check_missing_rpc_methods.py +++ b/tests/functional_tests/check_missing_rpc_methods.py @@ -46,5 +46,6 @@ for module in modules: name = name[1:] if not hasattr(module['object'], name): print('Error: %s API method %s does not have a matching function' % (module['name'], name)) + error = True sys.exit(1 if error else 0)