Skip to content

Commit 435fcd5

Browse files
committed
net: disable Assume in ProcessCompactBlockTxns
1 parent 098fd44 commit 435fcd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3328,7 +3328,7 @@ void PeerManagerImpl::ProcessCompactBlockTxns(CNode& pfrom, Peer& peer, const Bl
33283328
PartiallyDownloadedBlock& partialBlock = *range_flight.first->second.second->partialBlock;
33293329

33303330
// We should not have gotten this far in compact block processing unless it's attached to a known header
3331-
const CBlockIndex* prev_block{Assume(m_chainman.m_blockman.LookupBlockIndex(partialBlock.header.hashPrevBlock))};
3331+
const CBlockIndex* prev_block{m_chainman.m_blockman.LookupBlockIndex(partialBlock.header.hashPrevBlock)};
33323332
ReadStatus status = partialBlock.FillBlock(*pblock, block_transactions.txn,
33333333
/*segwit_active=*/DeploymentActiveAfter(prev_block, m_chainman, Consensus::DEPLOYMENT_SEGWIT));
33343334
if (status == READ_STATUS_INVALID) {

0 commit comments

Comments
 (0)