aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/rpc_command_executor.cpp
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-02-28 19:36:16 -0800
committerAlexander Blair <snipa@jagtech.io>2020-02-28 19:36:16 -0800
commit4da37daf67976e48d6fc75f2a5a6f5858d227815 (patch)
treeef7cf33b245ddf3e9325639a2dfb49baf6a5d82c /src/daemon/rpc_command_executor.cpp
parent8d5e043981454e076c22ec28102f25913d36194b (diff)
parent5985c5afe8051ef9933212e62293ece3634a5024 (diff)
downloadmonzero-core-4da37daf67976e48d6fc75f2a5a6f5858d227815.tar.gz
monzero-core-4da37daf67976e48d6fc75f2a5a6f5858d227815.tar.xz
monzero-core-4da37daf67976e48d6fc75f2a5a6f5858d227815.zip
Merge pull request #6211
5985c5af rpc: add bad-blocks to flush_cache RPC (moneromooo-monero)
Diffstat (limited to 'src/daemon/rpc_command_executor.cpp')
-rw-r--r--src/daemon/rpc_command_executor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp
index 1ca728e39..a8026ebf7 100644
--- a/src/daemon/rpc_command_executor.cpp
+++ b/src/daemon/rpc_command_executor.cpp
@@ -2427,7 +2427,7 @@ bool t_rpc_command_executor::set_bootstrap_daemon(
return true;
}
-bool t_rpc_command_executor::flush_cache(bool bad_txs)
+bool t_rpc_command_executor::flush_cache(bool bad_txs, bool bad_blocks)
{
cryptonote::COMMAND_RPC_FLUSH_CACHE::request req;
cryptonote::COMMAND_RPC_FLUSH_CACHE::response res;
@@ -2435,6 +2435,7 @@ bool t_rpc_command_executor::flush_cache(bool bad_txs)
epee::json_rpc::error error_resp;
req.bad_txs = bad_txs;
+ req.bad_blocks = bad_blocks;
if (m_is_rpc)
{