mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-29 10:09:08 +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():
|
||||
s := m.forceHistoricalSync()
|
||||
|
||||
// If we've already performed our initial historical
|
||||
// sync, then we have nothing left to do.
|
||||
if m.IsGraphSynced() {
|
||||
// If we don't have a syncer available or we've already
|
||||
// performed our initial historical sync, then we have
|
||||
// nothing left to do.
|
||||
if s == nil || m.IsGraphSynced() {
|
||||
continue
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user