zmq: remove port check error

This commit is contained in:
ErikEk
2022-04-30 12:00:32 +02:00
parent 9bbee09497
commit 30a857b982
2 changed files with 3 additions and 3 deletions

View File

@@ -530,7 +530,7 @@ func NewPartialChainControl(cfg *Config) (*PartialChainControl, func(), error) {
return nil, nil, err return nil, nil, err
} }
if url.Port() != zmqPubRawBlockURL.Port() { if url.Port() != zmqPubRawBlockURL.Port() {
return nil, nil, fmt.Errorf( log.Warnf(
"unable to subscribe to zmq block events on "+ "unable to subscribe to zmq block events on "+
"%s (bitcoind is running on %s)", "%s (bitcoind is running on %s)",
zmqPubRawBlockURL.Host, zmqPubRawBlockURL.Host,
@@ -545,7 +545,7 @@ func NewPartialChainControl(cfg *Config) (*PartialChainControl, func(), error) {
return nil, nil, err return nil, nil, err
} }
if url.Port() != zmqPubRawTxURL.Port() { if url.Port() != zmqPubRawTxURL.Port() {
return nil, nil, fmt.Errorf( log.Warnf(
"unable to subscribe to zmq tx events on "+ "unable to subscribe to zmq tx events on "+
"%s (bitcoind is running on %s)", "%s (bitcoind is running on %s)",
zmqPubRawTxURL.Host, zmqPubRawTxURL.Host,

View File

@@ -14,7 +14,7 @@ invoices](https://lists.linuxfoundation.org/pipermail/lightning-dev/2021-Septemb
## Security ## Security
* [Misconfigured ZMQ * [Misconfigured ZMQ
setup now gets reported](https://github.com/lightningnetwork/lnd/pull/5710). setup now logs a warning](https://github.com/lightningnetwork/lnd/pull/5710).
## Taproot ## Taproot