Skip to content

Commit 5269d57

Browse files
committed
[p2p] don't process orphan if in recent rejects
This should never happen normally, but just in case.
1 parent 2266eba commit 5269d57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/txdownloadman_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ node::RejectedTxTodo TxDownloadManagerImpl::MempoolRejectedTx(const CTransaction
313313
if (state.GetResult() == TxValidationResult::TX_MISSING_INPUTS) {
314314
// Only process a new orphan if this is a first time failure, as otherwise it must be either
315315
// already in orphanage or from 1p1c processing.
316-
if (first_time_failure) {
316+
if (first_time_failure && !RecentRejectsFilter().contains(ptx->GetWitnessHash().ToUint256())) {
317317
bool fRejectedParents = false; // It may be the case that the orphans parents have all been rejected
318318

319319
// Deduplicate parent txids, so that we don't have to loop over

0 commit comments

Comments
 (0)