mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-08 14:57:38 +02:00
discovery: transit all inactive syncers when needed
This commit is contained in:
@@ -398,6 +398,13 @@ func (m *SyncManager) syncerHandler() {
|
||||
continue
|
||||
}
|
||||
|
||||
// We may not even have enough inactive syncers to be
|
||||
// transitted. In that case, we will transit all the
|
||||
// inactive syncers.
|
||||
if len(m.inactiveSyncers) < numActiveLeft {
|
||||
numActiveLeft = len(m.inactiveSyncers)
|
||||
}
|
||||
|
||||
log.Debugf("Attempting to transition %v passive "+
|
||||
"GossipSyncers to active", numActiveLeft)
|
||||
|
||||
|
Reference in New Issue
Block a user