mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-09 21:56:47 +01:00
discovery: fix make lint
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user