mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 14:53:43 +01:00
refactor: Mark IsBlockPruned const
Member fields are used read-only in this method.
This commit is contained in:
@@ -588,7 +588,7 @@ const CBlockIndex* BlockManager::GetLastCheckpoint(const CCheckpointData& data)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool BlockManager::IsBlockPruned(const CBlockIndex& block)
|
||||
bool BlockManager::IsBlockPruned(const CBlockIndex& block) const
|
||||
{
|
||||
AssertLockHeld(::cs_main);
|
||||
return m_have_pruned && !(block.nStatus & BLOCK_HAVE_DATA) && (block.nTx > 0);
|
||||
|
||||
Reference in New Issue
Block a user