From dfbe0d530f75ca3a9121ed1a391165c90f1068c4 Mon Sep 17 00:00:00 2001 From: Alex Morcos Date: Thu, 1 Dec 2016 22:06:51 -0500 Subject: [PATCH] Add unstored orphans with rejected parents to recentRejects --- src/net_processing.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 747167264b..4a5ae0e69c 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -1707,6 +1707,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, LogPrint("mempool", "mapOrphan overflow, removed %u tx\n", nEvicted); } else { LogPrint("mempool", "not keeping orphan with rejected parents %s\n",tx.GetHash().ToString()); + // We will continue to reject this tx since it has rejected + // parents so avoid re-requesting it from other peers. + recentRejects->insert(tx.GetHash()); } } else { if (tx.wit.IsNull() && !state.CorruptionPossible()) {