mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-06 05:26:38 +02:00
discovery: check non-nil syncer upon historical sync tick
This commit is contained in:
@ -383,9 +383,10 @@ func (m *SyncManager) syncerHandler() {
|
|||||||
case <-m.cfg.HistoricalSyncTicker.Ticks():
|
case <-m.cfg.HistoricalSyncTicker.Ticks():
|
||||||
s := m.forceHistoricalSync()
|
s := m.forceHistoricalSync()
|
||||||
|
|
||||||
// If we've already performed our initial historical
|
// If we don't have a syncer available or we've already
|
||||||
// sync, then we have nothing left to do.
|
// performed our initial historical sync, then we have
|
||||||
if m.IsGraphSynced() {
|
// nothing left to do.
|
||||||
|
if s == nil || m.IsGraphSynced() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user