diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-01-12 12:34:40 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-01-12 12:34:44 +0100 |
| commit | 2742568a008e0fd5710a599eb847147749e96bbf (patch) | |
| tree | 779649468fa0abb05a21cb87b1414aee52c2fa8a /src/net_processing.cpp | |
| parent | Merge #8883: Add all standard TXO types to bitcoin-tx (diff) | |
| parent | Add unstored orphans with rejected parents to recentRejects (diff) | |
| download | discoin-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.cpp | 3 |
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()) { |