aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorAlex Morcos <morcos@chaincode.com>2016-12-01 22:06:51 -0500
committerAlex Morcos <morcos@chaincode.com>2016-12-03 08:38:20 -0500
commitdfbe0d530f75ca3a9121ed1a391165c90f1068c4 (patch)
tree4de31b88826d0b8f68636025e2858732c97f0465 /src/net_processing.cpp
parent2efcfa5acfacb958973d9e8125e1d81f102e2dfd (diff)
downloadbitcoin-dfbe0d530f75ca3a9121ed1a391165c90f1068c4.tar.xz
Add unstored orphans with rejected parents to recentRejects
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 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()) {