mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-04 21:04:58 +02:00
Add BlockManager::IsPruneMode()
This commit is contained in:
@@ -415,8 +415,9 @@ IndexSummary BaseIndex::GetSummary() const
|
||||
return summary;
|
||||
}
|
||||
|
||||
void BaseIndex::SetBestBlockIndex(const CBlockIndex* block) {
|
||||
assert(!node::fPruneMode || AllowPrune());
|
||||
void BaseIndex::SetBestBlockIndex(const CBlockIndex* block)
|
||||
{
|
||||
assert(!m_chainstate->m_blockman.IsPruneMode() || AllowPrune());
|
||||
|
||||
if (AllowPrune() && block) {
|
||||
node::PruneLockInfo prune_lock;
|
||||
|
||||
Reference in New Issue
Block a user