Skip to content

Commit fa56eda

Browse files
author
MarcoFalke
committed
log: Avoid treating remote misbehvior as local system error
1 parent fa49289 commit fa56eda

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/validation.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3641,8 +3641,10 @@ bool BlockManager::AcceptBlockHeader(const CBlockHeader& block, BlockValidationS
36413641
return true;
36423642
}
36433643

3644-
if (!CheckBlockHeader(block, state, chainparams.GetConsensus()))
3645-
return error("%s: Consensus::CheckBlockHeader: %s, %s", __func__, hash.ToString(), state.ToString());
3644+
if (!CheckBlockHeader(block, state, chainparams.GetConsensus())) {
3645+
LogPrint(BCLog::VALIDATION, "%s: Consensus::CheckBlockHeader: %s, %s\n", __func__, hash.ToString(), state.ToString());
3646+
return false;
3647+
}
36463648

36473649
// Get prev block index
36483650
CBlockIndex* pindexPrev = nullptr;

0 commit comments

Comments
 (0)