Skip to content

Commit dfbe0d5

Browse files
committed
Add unstored orphans with rejected parents to recentRejects
1 parent 2efcfa5 commit dfbe0d5

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
@@ -1707,6 +1707,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
17071707
LogPrint("mempool", "mapOrphan overflow, removed %u tx\n", nEvicted);
17081708
} else {
17091709
LogPrint("mempool", "not keeping orphan with rejected parents %s\n",tx.GetHash().ToString());
1710+
// We will continue to reject this tx since it has rejected
1711+
// parents so avoid re-requesting it from other peers.
1712+
recentRejects->insert(tx.GetHash());
17101713
}
17111714
} else {
17121715
if (tx.wit.IsNull() && !state.CorruptionPossible()) {

0 commit comments

Comments
 (0)