aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-01-12 12:34:40 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2017-01-12 12:34:44 +0100
commit2742568a008e0fd5710a599eb847147749e96bbf (patch)
tree779649468fa0abb05a21cb87b1414aee52c2fa8a /src/net_processing.cpp
parentd5d4ad87afbf6c09a936c910826a75568d42d7ea (diff)
parentdfbe0d530f75ca3a9121ed1a391165c90f1068c4 (diff)
downloadbitcoin-2742568a008e0fd5710a599eb847147749e96bbf.tar.xz
Merge #9261: Add unstored orphans with rejected parents to recentRejects
dfbe0d5 Add unstored orphans with rejected parents to recentRejects (Alex Morcos)
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index 3a956e89e7..72c403a57e 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -1715,6 +1715,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.HasWitness() && !state.CorruptionPossible()) {