@@ -35,7 +35,7 @@ bool TxOrphanage::AddTx(const CTransactionRef& tx, NodeId peer)
35
35
unsigned int sz = GetTransactionWeight (*tx);
36
36
if (sz > MAX_STANDARD_TX_WEIGHT)
37
37
{
38
- LogPrint (BCLog::MEMPOOL , " ignoring large orphan tx (size: %u, txid: %s, wtxid: %s)\n " , sz, hash.ToString (), wtxid.ToString ());
38
+ LogPrint (BCLog::TXPACKAGES , " ignoring large orphan tx (size: %u, txid: %s, wtxid: %s)\n " , sz, hash.ToString (), wtxid.ToString ());
39
39
return false ;
40
40
}
41
41
@@ -48,7 +48,7 @@ bool TxOrphanage::AddTx(const CTransactionRef& tx, NodeId peer)
48
48
m_outpoint_to_orphan_it[txin.prevout ].insert (ret.first );
49
49
}
50
50
51
- LogPrint (BCLog::MEMPOOL , " stored orphan tx %s (wtxid=%s) (mapsz %u outsz %u)\n " , hash.ToString (), wtxid.ToString (),
51
+ LogPrint (BCLog::TXPACKAGES , " stored orphan tx %s (wtxid=%s) (mapsz %u outsz %u)\n " , hash.ToString (), wtxid.ToString (),
52
52
m_orphans.size (), m_outpoint_to_orphan_it.size ());
53
53
return true ;
54
54
}
@@ -107,7 +107,7 @@ void TxOrphanage::EraseForPeer(NodeId peer)
107
107
nErased += EraseTxNoLock (maybeErase->second .tx ->GetHash ());
108
108
}
109
109
}
110
- if (nErased > 0 ) LogPrint (BCLog::MEMPOOL , " Erased %d orphan tx from peer=%d\n " , nErased, peer);
110
+ if (nErased > 0 ) LogPrint (BCLog::TXPACKAGES , " Erased %d orphan tx from peer=%d\n " , nErased, peer);
111
111
}
112
112
113
113
void TxOrphanage::LimitOrphans (unsigned int max_orphans)
@@ -133,7 +133,7 @@ void TxOrphanage::LimitOrphans(unsigned int max_orphans)
133
133
}
134
134
// Sweep again 5 minutes after the next entry that expires in order to batch the linear scan.
135
135
nNextSweep = nMinExpTime + ORPHAN_TX_EXPIRE_INTERVAL;
136
- if (nErased > 0 ) LogPrint (BCLog::MEMPOOL , " Erased %d orphan tx due to expiration\n " , nErased);
136
+ if (nErased > 0 ) LogPrint (BCLog::TXPACKAGES , " Erased %d orphan tx due to expiration\n " , nErased);
137
137
}
138
138
FastRandomContext rng;
139
139
while (m_orphans.size () > max_orphans)
@@ -143,7 +143,7 @@ void TxOrphanage::LimitOrphans(unsigned int max_orphans)
143
143
EraseTxNoLock (m_orphan_list[randompos]->first );
144
144
++nEvicted;
145
145
}
146
- if (nEvicted > 0 ) LogPrint (BCLog::MEMPOOL , " orphanage overflow, removed %u tx\n " , nEvicted);
146
+ if (nEvicted > 0 ) LogPrint (BCLog::TXPACKAGES , " orphanage overflow, removed %u tx\n " , nEvicted);
147
147
}
148
148
149
149
void TxOrphanage::AddChildrenToWorkSet (const CTransaction& tx)
@@ -234,6 +234,6 @@ void TxOrphanage::EraseForBlock(const CBlock& block)
234
234
for (const uint256& orphanHash : vOrphanErase) {
235
235
nErased += EraseTxNoLock (orphanHash);
236
236
}
237
- LogPrint (BCLog::MEMPOOL , " Erased %d orphan tx included or conflicted by block\n " , nErased);
237
+ LogPrint (BCLog::TXPACKAGES , " Erased %d orphan tx included or conflicted by block\n " , nErased);
238
238
}
239
239
}
0 commit comments