From bde49d7a91060ffb826a193d39da705e6533eb09 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Mon, 10 Nov 2025 17:45:11 -0300 Subject: [PATCH] loopd: wait for chain notifier Use https://github.com/lightninglabs/lndclient/pull/255 --- loopd/run.go | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/loopd/run.go b/loopd/run.go index e3fd1625..0735d29a 100644 --- a/loopd/run.go +++ b/loopd/run.go @@ -88,15 +88,17 @@ func NewListenerConfig(config *Config, rpcCfg RPCConfig) *ListenerCfg { defer cancel() svcCfg := &lndclient.LndServicesConfig{ - LndAddress: cfg.Host, - Network: network, - CustomMacaroonPath: cfg.MacaroonPath, - TLSPath: cfg.TLSPath, - CheckVersion: LoopMinRequiredLndVersion, - BlockUntilChainSynced: true, - CallerCtx: callerCtx, - BlockUntilUnlocked: true, - RPCTimeout: cfg.RPCTimeout, + LndAddress: cfg.Host, + Network: network, + CustomMacaroonPath: cfg.MacaroonPath, + TLSPath: cfg.TLSPath, + CheckVersion: LoopMinRequiredLndVersion, + CallerCtx: callerCtx, + RPCTimeout: cfg.RPCTimeout, + + BlockUntilChainSynced: true, + BlockUntilUnlocked: true, + BlockUntilChainNotifier: true, } // If a custom lnd connection is specified we use that