mirror of
https://github.com/monero-project/monero.git
synced 2026-01-07 10:50:36 -08:00
Merge pull request #6211
5985c5af rpc: add bad-blocks to flush_cache RPC (moneromooo-monero)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user