diff options
author | Alex Morcos <morcos@chaincode.com> | 2016-12-01 22:06:51 -0500 |
---|---|---|
committer | Alex Morcos <morcos@chaincode.com> | 2016-12-03 08:38:20 -0500 |
commit | dfbe0d530f75ca3a9121ed1a391165c90f1068c4 (patch) | |
tree | 4de31b88826d0b8f68636025e2858732c97f0465 /src/net_processing.cpp | |
parent | 2efcfa5acfacb958973d9e8125e1d81f102e2dfd (diff) |
Add unstored orphans with rejected parents to recentRejects
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r-- | src/net_processing.cpp | 3 |
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()) { |