@@ -3381,23 +3381,7 @@ void PeerManagerImpl::ProcessCompactBlockTxns(CNode& pfrom, Peer& peer, const Bl
33813381 return ;
33823382 }
33833383 } else {
3384- // Block is either okay, or possibly we received
3385- // READ_STATUS_CHECKBLOCK_FAILED.
3386- // Note that CheckBlock can only fail for one of a few reasons:
3387- // 1. bad-proof-of-work (impossible here, because we've already
3388- // accepted the header)
3389- // 2. merkleroot doesn't match the transactions given (already
3390- // caught in FillBlock with READ_STATUS_FAILED, so
3391- // impossible here)
3392- // 3. the block is otherwise invalid (eg invalid coinbase,
3393- // block is too big, too many legacy sigops, etc).
3394- // So if CheckBlock failed, #3 is the only possibility.
3395- // Under BIP 152, we don't discourage the peer unless proof of work is
3396- // invalid (we don't require all the stateless checks to have
3397- // been run). This is handled below, so just treat this as
3398- // though the block was successfully read, and rely on the
3399- // handling in ProcessNewBlock to ensure the block index is
3400- // updated, etc.
3384+ // Block is okay for further processing
34013385 RemoveBlockRequest (block_transactions.blockhash , pfrom.GetId ()); // it is now an empty pointer
34023386 fBlockRead = true ;
34033387 // mapBlockSource is used for potentially punishing peers and
0 commit comments