Skip to content

Commit 2742568

Browse files
committed
Merge #9261: Add unstored orphans with rejected parents to recentRejects
dfbe0d5 Add unstored orphans with rejected parents to recentRejects (Alex Morcos)
2 parents d5d4ad8 + dfbe0d5 commit 2742568

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/net_processing.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,6 +1715,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
17151715
LogPrint("mempool", "mapOrphan overflow, removed %u tx\n", nEvicted);
17161716
} else {
17171717
LogPrint("mempool", "not keeping orphan with rejected parents %s\n",tx.GetHash().ToString());
1718+
// We will continue to reject this tx since it has rejected
1719+
// parents so avoid re-requesting it from other peers.
1720+
recentRejects->insert(tx.GetHash());
17181721
}
17191722
} else {
17201723
if (!tx.HasWitness() && !state.CorruptionPossible()) {

0 commit comments

Comments
 (0)