mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-08 14:47:31 +02:00
validation: remove BLOCK_FAILED_MASK
since it's the same as BLOCK_FAILED_VALID now
This commit is contained in:
@@ -493,7 +493,7 @@ bool BlockManager::LoadBlockIndex(const std::optional<uint256>& snapshot_blockha
|
||||
pindex->nStatus = (pindex->nStatus & ~BLOCK_FAILED_CHILD) | BLOCK_FAILED_VALID;
|
||||
m_dirty_blockindex.insert(pindex);
|
||||
}
|
||||
if (!(pindex->nStatus & BLOCK_FAILED_MASK) && pindex->pprev && (pindex->pprev->nStatus & BLOCK_FAILED_MASK)) {
|
||||
if (!(pindex->nStatus & BLOCK_FAILED_VALID) && pindex->pprev && (pindex->pprev->nStatus & BLOCK_FAILED_VALID)) {
|
||||
// All descendants of invalid blocks are invalid too.
|
||||
pindex->nStatus |= BLOCK_FAILED_VALID;
|
||||
m_dirty_blockindex.insert(pindex);
|
||||
|
||||
Reference in New Issue
Block a user