Skip to content

Commit 26ee295

Browse files
committed
loopd: wait for chain notifier
Use lightninglabs/lndclient#255
1 parent 342ec41 commit 26ee295

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

loopd/run.go

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,17 @@ func NewListenerConfig(config *Config, rpcCfg RPCConfig) *ListenerCfg {
8888
defer cancel()
8989

9090
svcCfg := &lndclient.LndServicesConfig{
91-
LndAddress: cfg.Host,
92-
Network: network,
93-
CustomMacaroonPath: cfg.MacaroonPath,
94-
TLSPath: cfg.TLSPath,
95-
CheckVersion: LoopMinRequiredLndVersion,
96-
BlockUntilChainSynced: true,
97-
CallerCtx: callerCtx,
98-
BlockUntilUnlocked: true,
99-
RPCTimeout: cfg.RPCTimeout,
91+
LndAddress: cfg.Host,
92+
Network: network,
93+
CustomMacaroonPath: cfg.MacaroonPath,
94+
TLSPath: cfg.TLSPath,
95+
CheckVersion: LoopMinRequiredLndVersion,
96+
CallerCtx: callerCtx,
97+
RPCTimeout: cfg.RPCTimeout,
98+
99+
BlockUntilChainSynced: true,
100+
BlockUntilUnlocked: true,
101+
BlockUntilChainNotifier: true,
100102
}
101103

102104
// If a custom lnd connection is specified we use that

0 commit comments

Comments
 (0)