mirror of
https://github.com/monero-project/monero.git
synced 2025-08-08 14:12:29 -04:00
Merge pull request #6211
5985c5af
rpc: add bad-blocks to flush_cache RPC (moneromooo-monero)
This commit is contained in:
commit
4da37daf67
10 changed files with 46 additions and 6 deletions
|
@ -2541,6 +2541,13 @@ bool Blockchain::add_block_as_invalid(const block_extended_info& bei, const cryp
|
|||
return true;
|
||||
}
|
||||
//------------------------------------------------------------------
|
||||
void Blockchain::flush_invalid_blocks()
|
||||
{
|
||||
LOG_PRINT_L3("Blockchain::" << __func__);
|
||||
CRITICAL_REGION_LOCAL(m_blockchain_lock);
|
||||
m_invalid_blocks.clear();
|
||||
}
|
||||
//------------------------------------------------------------------
|
||||
bool Blockchain::have_block(const crypto::hash& id) const
|
||||
{
|
||||
LOG_PRINT_L3("Blockchain::" << __func__);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue