File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -588,7 +588,7 @@ const CBlockIndex* BlockManager::GetLastCheckpoint(const CCheckpointData& data)
588
588
return nullptr ;
589
589
}
590
590
591
- bool BlockManager::IsBlockPruned (const CBlockIndex& block)
591
+ bool BlockManager::IsBlockPruned (const CBlockIndex& block) const
592
592
{
593
593
AssertLockHeld (::cs_main);
594
594
return m_have_pruned && !(block.nStatus & BLOCK_HAVE_DATA) && (block.nTx > 0 );
Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ class BlockManager
381
381
bool m_have_pruned = false ;
382
382
383
383
// ! Check whether the block associated with this index entry is pruned or not.
384
- bool IsBlockPruned (const CBlockIndex& block) EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
384
+ bool IsBlockPruned (const CBlockIndex& block) const EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
385
385
386
386
// ! Create or update a prune lock identified by its name
387
387
void UpdatePruneLock (const std::string& name, const PruneLockInfo& lock_info) EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
You can’t perform that action at this time.
0 commit comments