@@ -35,7 +35,7 @@ bool TxOrphanage::AddTx(const CTransactionRef& tx, NodeId peer)
3535 unsigned int sz = GetTransactionWeight (*tx);
3636 if (sz > MAX_STANDARD_TX_WEIGHT)
3737 {
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 ());
3939 return false ;
4040 }
4141
@@ -48,7 +48,7 @@ bool TxOrphanage::AddTx(const CTransactionRef& tx, NodeId peer)
4848 m_outpoint_to_orphan_it[txin.prevout ].insert (ret.first );
4949 }
5050
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 (),
5252 m_orphans.size (), m_outpoint_to_orphan_it.size ());
5353 return true ;
5454}
@@ -107,7 +107,7 @@ void TxOrphanage::EraseForPeer(NodeId peer)
107107 nErased += EraseTxNoLock (maybeErase->second .tx ->GetHash ());
108108 }
109109 }
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);
111111}
112112
113113void TxOrphanage::LimitOrphans (unsigned int max_orphans)
@@ -133,7 +133,7 @@ void TxOrphanage::LimitOrphans(unsigned int max_orphans)
133133 }
134134 // Sweep again 5 minutes after the next entry that expires in order to batch the linear scan.
135135 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);
137137 }
138138 FastRandomContext rng;
139139 while (m_orphans.size () > max_orphans)
@@ -143,7 +143,7 @@ void TxOrphanage::LimitOrphans(unsigned int max_orphans)
143143 EraseTxNoLock (m_orphan_list[randompos]->first );
144144 ++nEvicted;
145145 }
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);
147147}
148148
149149void TxOrphanage::AddChildrenToWorkSet (const CTransaction& tx)
@@ -234,6 +234,6 @@ void TxOrphanage::EraseForBlock(const CBlock& block)
234234 for (const uint256& orphanHash : vOrphanErase) {
235235 nErased += EraseTxNoLock (orphanHash);
236236 }
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);
238238 }
239239}
0 commit comments