diff --git a/discovery/gossiper.go b/discovery/gossiper.go index c3ef87fce..967f9ee94 100644 --- a/discovery/gossiper.go +++ b/discovery/gossiper.go @@ -2701,7 +2701,7 @@ func (d *AuthenticatedGossiper) handleChanAnnouncement(ctx context.Context, // ShortChannelID is an alias, then we'll skip validation as it will // not map to a legitimate tx. This is not a DoS vector as only we can // add an alias ChannelAnnouncement from the gossiper. - if !(d.cfg.AssumeChannelValid || d.cfg.IsAlias(scid)) { //nolint:nestif + if !(d.cfg.AssumeChannelValid || d.cfg.IsAlias(scid)) { op, capacity, script, err := d.validateFundingTransaction( ctx, ann, tapscriptRoot, ) diff --git a/discovery/sync_manager.go b/discovery/sync_manager.go index c52fec8a2..378085e49 100644 --- a/discovery/sync_manager.go +++ b/discovery/sync_manager.go @@ -211,7 +211,6 @@ type SyncManager struct { // newSyncManager constructs a new SyncManager backed by the given config. func newSyncManager(cfg *SyncManagerCfg) *SyncManager { - filterConcurrency := cfg.FilterConcurrency if filterConcurrency == 0 { filterConcurrency = DefaultFilterConcurrency diff --git a/lncfg/gossip.go b/lncfg/gossip.go index 6eb4661e9..635496c0b 100644 --- a/lncfg/gossip.go +++ b/lncfg/gossip.go @@ -44,7 +44,6 @@ type Gossip struct { } // Parse the pubkeys for the pinned syncers. - func (g *Gossip) Parse() error { pinnedSyncers := make(discovery.PinnedSyncers) for _, pubkeyStr := range g.PinnedSyncersRaw {