lnd: add debug log when syncing blocks

This commit is contained in:
yyforyongyu
2023-06-19 14:00:21 +08:00
parent 7f95810359
commit bd205aac13

5
lnd.go
View File

@@ -635,12 +635,15 @@ func Main(cfg *Config, lisCfg ListenerCfg, implCfg *ImplementationCfg,
return nil
}
synced, _, err := activeChainControl.Wallet.IsSynced()
synced, ts, err := activeChainControl.Wallet.IsSynced()
if err != nil {
return mkErr("unable to determine if wallet is "+
"synced: %v", err)
}
ltndLog.Debugf("Syncing to block timestamp: %v, is synced=%v",
time.Unix(ts, 0), synced)
if synced {
break
}