@@ -4322,7 +4322,6 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
4322
4322
mempool.check (pcoinsTip);
4323
4323
RelayTransaction (tx);
4324
4324
vWorkQueue.push_back (inv.hash );
4325
- vEraseQueue.push_back (inv.hash );
4326
4325
4327
4326
LogPrint (" mempool" , " AcceptToMemoryPool: peer=%d %s: accepted %s (poolsz %u)\n " ,
4328
4327
pfrom->id , pfrom->cleanSubVer ,
@@ -4349,7 +4348,6 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
4349
4348
// anyone relaying LegitTxX banned)
4350
4349
CValidationState stateDummy;
4351
4350
4352
- vEraseQueue.push_back (orphanHash);
4353
4351
4354
4352
if (setMisbehaving.count (fromPeer))
4355
4353
continue ;
@@ -4358,6 +4356,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
4358
4356
LogPrint (" mempool" , " accepted orphan tx %s\n " , orphanHash.ToString ());
4359
4357
RelayTransaction (orphanTx);
4360
4358
vWorkQueue.push_back (orphanHash);
4359
+ vEraseQueue.push_back (orphanHash);
4361
4360
}
4362
4361
else if (!fMissingInputs2 )
4363
4362
{
@@ -4369,8 +4368,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
4369
4368
setMisbehaving.insert (fromPeer);
4370
4369
LogPrint (" mempool" , " invalid orphan tx %s\n " , orphanHash.ToString ());
4371
4370
}
4372
- // too-little-fee orphan
4371
+ // Has inputs but not accepted to mempool
4372
+ // Probably non-standard or insufficient fee/priority
4373
4373
LogPrint (" mempool" , " removed orphan tx %s\n " , orphanHash.ToString ());
4374
+ vEraseQueue.push_back (orphanHash);
4374
4375
}
4375
4376
mempool.check (pcoinsTip);
4376
4377
}
0 commit comments