loopd: wait for chain notifier

Use https://github.com/lightninglabs/lndclient/pull/255
This commit is contained in:
Boris Nagaev 2025-11-10 17:45:11 -03:00
parent deced54665
commit bde49d7a91
No known key found for this signature in database

View file

@ -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