Merge pull request #7774 from yyforyongyu/log-block-sync
lnd: add debug log when syncing blocks
This commit is contained in:
1 file changed
+4
-1
@@ -635,12 +635,15 @@ func Main(cfg *Config, lisCfg ListenerCfg, implCfg *ImplementationCfg,
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
synced, _, err := activeChainControl.Wallet.IsSynced()
|
synced, ts, err := activeChainControl.Wallet.IsSynced()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return mkErr("unable to determine if wallet is "+
|
return mkErr("unable to determine if wallet is "+
|
||||||
"synced: %v", err)
|
"synced: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ltndLog.Debugf("Syncing to block timestamp: %v, is synced=%v",
|
||||||
|
time.Unix(ts, 0), synced)
|
||||||
|
|
||||||
if synced {
|
if synced {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user