Browse Source

Add unstored orphans with rejected parents to recentRejects

0.14
Alex Morcos 8 years ago
parent
commit
dfbe0d530f
  1. 3
      src/net_processing.cpp

3
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); LogPrint("mempool", "mapOrphan overflow, removed %u tx\n", nEvicted);
} else { } else {
LogPrint("mempool", "not keeping orphan with rejected parents %s\n",tx.GetHash().ToString()); 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 { } else {
if (tx.wit.IsNull() && !state.CorruptionPossible()) { if (tx.wit.IsNull() && !state.CorruptionPossible()) {

Loading…
Cancel
Save