Browse Source

Merge #9261: Add unstored orphans with rejected parents to recentRejects

dfbe0d5 Add unstored orphans with rejected parents to recentRejects (Alex Morcos)
0.14
Wladimir J. van der Laan 8 years ago
parent
commit
2742568a00
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 3
      src/net_processing.cpp

3
src/net_processing.cpp

@ -1715,6 +1715,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, @@ -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()) {

Loading…
Cancel
Save