aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-10-25 14:20:20 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-10-25 14:20:20 -0500
commitf253bf384674ae8a2f1d0652cb27ff17c7fc1fc1 (patch)
tree81bc979a941aecb93600e900ddf6a7bb5a81fc4b /utils
parentMerge pull request #6023 (diff)
parentrpc: add a flush_cache RPC (diff)
downloadmonero-f253bf384674ae8a2f1d0652cb27ff17c7fc1fc1.tar.xz
Merge pull request #6007
a4dc575 rpc: add a flush_cache RPC (moneromooo-monero)
Diffstat (limited to 'utils')
-rw-r--r--utils/python-rpc/framework/daemon.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/python-rpc/framework/daemon.py b/utils/python-rpc/framework/daemon.py
index f811535b1..9f7805dc8 100644
--- a/utils/python-rpc/framework/daemon.py
+++ b/utils/python-rpc/framework/daemon.py
@@ -516,16 +516,16 @@ class Daemon(object):
}
return self.rpc.send_json_rpc_request(prune_blockchain)
- def get_block_rate(self, seconds = [3600]):
- get_block_rate = {
- 'method': 'get_block_rate',
+ def flush_cache(self, bad_txs = False):
+ flush_cache = {
+ 'method': 'flush_cache',
'params': {
- 'seconds': seconds,
+ 'bad_txs': bad_txs,
},
- 'jsonrpc': '2.0',
+ 'jsonrpc': '2.0',
'id': '0'
}
- return self.rpc.send_json_rpc_request(get_block_rate)
+ return self.rpc.send_json_rpc_request(flush_cache)
def rpc_access_info(self, client):
rpc_access_info = {