From 3fd1cd9bd86b8efe30732528b0ded6e4675cb82e Mon Sep 17 00:00:00 2001 From: Andrew Barnes Date: Mon, 9 Mar 2026 13:13:05 -0400 Subject: [PATCH 1/2] chainreg: clarify zmq port mismatch warning message The existing warning "unable to subscribe to zmq block/tx events" is misleading because it implies lnd failed to create zmq connections, when it actually means the configured port doesn't match what bitcoind reports via getzmqnotifications. This is expected in port-forwarding setups. Reword the warning to clearly state it's a port mismatch and suggest verifying the configuration. Fixes lightningnetwork/lnd#10568 --- chainreg/chainregistry.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/chainreg/chainregistry.go b/chainreg/chainregistry.go index 71e9c04a6c4..f3be82c2ffd 100644 --- a/chainreg/chainregistry.go +++ b/chainreg/chainregistry.go @@ -478,8 +478,11 @@ func NewPartialChainControl(cfg *Config) (*PartialChainControl, func(), error) { } if url.Port() != zmqPubRawBlockURL.Port() { log.Warnf( - "unable to subscribe to zmq block events on "+ - "%s (bitcoind is running on %s)", + "zmq block event port mismatch: "+ + "lnd is configured for %s but "+ + "bitcoind reports %s -- ensure "+ + "the ports match or are forwarded "+ + "correctly", zmqPubRawBlockURL.Host, url.Host, ) @@ -493,8 +496,11 @@ func NewPartialChainControl(cfg *Config) (*PartialChainControl, func(), error) { } if url.Port() != zmqPubRawTxURL.Port() { log.Warnf( - "unable to subscribe to zmq tx events on "+ - "%s (bitcoind is running on %s)", + "zmq tx event port mismatch: "+ + "lnd is configured for %s but "+ + "bitcoind reports %s -- ensure "+ + "the ports match or are forwarded "+ + "correctly", zmqPubRawTxURL.Host, url.Host, ) From bf56249e342a478f90fc12b7ae1002c49a8d3ee0 Mon Sep 17 00:00:00 2001 From: Andrew Barnes Date: Mon, 9 Mar 2026 14:25:24 -0400 Subject: [PATCH 2/2] Compact zmq port mismatch warning log messages Combine multi-line format strings into fewer lines for readability. --- chainreg/chainregistry.go | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/chainreg/chainregistry.go b/chainreg/chainregistry.go index f3be82c2ffd..e1a978af78c 100644 --- a/chainreg/chainregistry.go +++ b/chainreg/chainregistry.go @@ -477,15 +477,10 @@ func NewPartialChainControl(cfg *Config) (*PartialChainControl, func(), error) { return nil, nil, err } if url.Port() != zmqPubRawBlockURL.Port() { - log.Warnf( - "zmq block event port mismatch: "+ - "lnd is configured for %s but "+ - "bitcoind reports %s -- ensure "+ - "the ports match or are forwarded "+ - "correctly", - zmqPubRawBlockURL.Host, - url.Host, - ) + log.Warnf("zmq block event port mismatch: "+ + "lnd configured for %s, bitcoind reports %s -- "+ + "ensure ports match or are forwarded correctly", + zmqPubRawBlockURL.Host, url.Host) } pubRawBlockActive = true } @@ -495,15 +490,10 @@ func NewPartialChainControl(cfg *Config) (*PartialChainControl, func(), error) { return nil, nil, err } if url.Port() != zmqPubRawTxURL.Port() { - log.Warnf( - "zmq tx event port mismatch: "+ - "lnd is configured for %s but "+ - "bitcoind reports %s -- ensure "+ - "the ports match or are forwarded "+ - "correctly", - zmqPubRawTxURL.Host, - url.Host, - ) + log.Warnf("zmq tx event port mismatch: "+ + "lnd configured for %s, bitcoind reports %s -- "+ + "ensure ports match or are forwarded correctly", + zmqPubRawTxURL.Host, url.Host) } pubRawTxActive = true }