Merge pull request #6211

5985c5af rpc: add bad-blocks to flush_cache RPC (moneromooo-monero)
This commit is contained in:
Alexander Blair
2020-02-28 19:36:16 -08:00
10 changed files with 46 additions and 6 deletions

View File

@@ -3014,6 +3014,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;
}