discovery: fix make lint

This commit is contained in:
yyforyongyu
2025-07-31 11:46:47 +08:00
parent 84532e27f9
commit fc11e48585
3 changed files with 1 additions and 3 deletions

View File

@@ -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,
)

View File

@@ -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