aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2017-01-12 12:34:40 +0100
committerWladimir J. van der Laan <[email protected]>2017-01-12 12:34:44 +0100
commit2742568a008e0fd5710a599eb847147749e96bbf (patch)
tree779649468fa0abb05a21cb87b1414aee52c2fa8a /src/net_processing.cpp
parentMerge #8883: Add all standard TXO types to bitcoin-tx (diff)
parentAdd unstored orphans with rejected parents to recentRejects (diff)
downloaddiscoin-2742568a008e0fd5710a599eb847147749e96bbf.tar.xz
discoin-2742568a008e0fd5710a599eb847147749e96bbf.zip
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 3a956e89e..72c403a57 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()) {