Merge 1397afc5ec into merged_master (Bitcoin PR #19526)

This commit is contained in:
Andrew Poelstra 2020-11-26 15:55:30 +00:00
commit f0f5ff0efe
2 changed files with 20 additions and 16 deletions

View file

@ -3977,8 +3977,10 @@ bool BlockManager::AcceptBlockHeader(const CBlockHeader& block, BlockValidationS
return true;
}
if (!CheckBlockHeader(block, state, chainparams.GetConsensus()))
return error("%s: Consensus::CheckBlockHeader: %s, %s", __func__, hash.ToString(), state.ToString());
if (!CheckBlockHeader(block, state, chainparams.GetConsensus())) {
LogPrint(BCLog::VALIDATION, "%s: Consensus::CheckBlockHeader: %s, %s\n", __func__, hash.ToString(), state.ToString());
return false;
}
// Get prev block index
CBlockIndex* pindexPrev = nullptr;