aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-12-02 18:51:28 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-12-02 18:53:30 +0000
commit5985c5afe8051ef9933212e62293ece3634a5024 (patch)
treea3d54b1111c7f9d346c94900613943f2c84ca364 /src/rpc/core_rpc_server.cpp
parentMerge pull request #6174 (diff)
downloadmonero-5985c5afe8051ef9933212e62293ece3634a5024.tar.xz
rpc: add bad-blocks to flush_cache RPC
Flushes m_invalid_blocks in Blockchain.
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r--src/rpc/core_rpc_server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index 9117b5b3a..2438b3045 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -3004,6 +3004,8 @@ namespace cryptonote
RPC_TRACKER(flush_cache);
if (req.bad_txs)
m_core.flush_bad_txs_cache();
+ if (req.bad_blocks)
+ m_core.flush_invalid_blocks();
res.status = CORE_RPC_STATUS_OK;
return true;
}