From eb5d8d5b9d12bbb75eac5245d9a783d2be50f8c1 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 30 Jan 2026 16:30:35 -0600 Subject: [PATCH] server: Update mempool orphan eviction debug log. This modifies the debug log for evicted mempool orphans to explicitly call out that it is referring to mempool orphans to avoid any potential confusion between orphans of other types that exist (for example mixpool orphans). --- server.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server.go b/server.go index 146dd9afb..e97526aa1 100644 --- a/server.go +++ b/server.go @@ -933,11 +933,12 @@ func (sp *serverPeer) Run() { srvr.syncManager.OnPeerDisconnected(sp.syncMgrPeer) if sp.VersionKnown() { - // Evict any remaining orphans that were sent by the peer. + // Evict any remaining mempool orphans that were sent by the peer. numEvicted := srvr.txMemPool.RemoveOrphansByTag(mempool.Tag(sp.ID())) if numEvicted > 0 { - srvrLog.Debugf("Evicted %d %s from peer %v (id %d)", numEvicted, - pickNoun(numEvicted, "orphan", "orphans"), sp, sp.ID()) + srvrLog.Debugf("Evicted %d mempool %s from peer %v (id %d)", + numEvicted, pickNoun(numEvicted, "orphan", "orphans"), sp, + sp.ID()) } }