|
|
|
@ -197,7 +197,8 @@ ReadStatus PartiallyDownloadedBlock::FillBlock(CBlock& block, const std::vector<
|
|
|
|
|
return READ_STATUS_INVALID;
|
|
|
|
|
|
|
|
|
|
BlockValidationState state;
|
|
|
|
|
if (!CheckBlock(block, state, Params().GetConsensus())) {
|
|
|
|
|
CheckBlockFn check_block = m_check_block_mock ? m_check_block_mock : CheckBlock;
|
|
|
|
|
if (!check_block(block, state, Params().GetConsensus(), /*fCheckPoW=*/true, /*fCheckMerkleRoot=*/true)) {
|
|
|
|
|
// TODO: We really want to just check merkle tree manually here,
|
|
|
|
|
// but that is expensive, and CheckBlock caches a block's
|
|
|
|
|
// "checked-status" (in the CBlock?). CBlock should be able to
|
|
|
|
|