diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-10-25 14:20:20 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-10-25 14:20:20 -0500 |
commit | f253bf384674ae8a2f1d0652cb27ff17c7fc1fc1 (patch) | |
tree | 81bc979a941aecb93600e900ddf6a7bb5a81fc4b /src/daemon/command_server.cpp | |
parent | Merge pull request #6023 (diff) | |
parent | rpc: add a flush_cache RPC (diff) | |
download | monero-f253bf384674ae8a2f1d0652cb27ff17c7fc1fc1.tar.xz |
Merge pull request #6007
a4dc575 rpc: add a flush_cache RPC (moneromooo-monero)
Diffstat (limited to 'src/daemon/command_server.cpp')
-rw-r--r-- | src/daemon/command_server.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/daemon/command_server.cpp b/src/daemon/command_server.cpp index b00e253c7..8ec690631 100644 --- a/src/daemon/command_server.cpp +++ b/src/daemon/command_server.cpp @@ -322,6 +322,12 @@ t_command_server::t_command_server( , "URL of a 'bootstrap' remote daemon that the connected wallets can use while this daemon is still not fully synced.\n" "Use 'auto' to enable automatic public nodes discovering and bootstrap daemon switching" ); + m_command_lookup.set_handler( + "flush_cache" + , std::bind(&t_command_parser_executor::flush_cache, &m_parser, p::_1) + , "flush_cache bad-txs" + , "Flush the specified cache(s)." + ); } bool t_command_server::process_command_str(const std::string& cmd) |