Skip to content

Commit

Permalink
blockchain: lock the blockchain while pruning
Browse files Browse the repository at this point in the history
  • Loading branch information
moneromooo-monero committed Apr 15, 2019
1 parent 1f809e7 commit 9f6562d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cryptonote_core/blockchain.cpp
Expand Up @@ -3896,6 +3896,7 @@ bool Blockchain::handle_block_to_main_chain(const block& bl, const crypto::hash&
//------------------------------------------------------------------
bool Blockchain::prune_blockchain(uint32_t pruning_seed)
{
CRITICAL_REGION_LOCAL(m_blockchain_lock);
return m_db->prune_blockchain(pruning_seed);
}
//------------------------------------------------------------------
Expand Down

0 comments on commit 9f6562d

Please sign in to comment.