mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-11 06:37:21 +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
|
// 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
|
// not map to a legitimate tx. This is not a DoS vector as only we can
|
||||||
// add an alias ChannelAnnouncement from the gossiper.
|
// 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(
|
op, capacity, script, err := d.validateFundingTransaction(
|
||||||
ctx, ann, tapscriptRoot,
|
ctx, ann, tapscriptRoot,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -211,7 +211,6 @@ type SyncManager struct {
|
|||||||
|
|
||||||
// newSyncManager constructs a new SyncManager backed by the given config.
|
// newSyncManager constructs a new SyncManager backed by the given config.
|
||||||
func newSyncManager(cfg *SyncManagerCfg) *SyncManager {
|
func newSyncManager(cfg *SyncManagerCfg) *SyncManager {
|
||||||
|
|
||||||
filterConcurrency := cfg.FilterConcurrency
|
filterConcurrency := cfg.FilterConcurrency
|
||||||
if filterConcurrency == 0 {
|
if filterConcurrency == 0 {
|
||||||
filterConcurrency = DefaultFilterConcurrency
|
filterConcurrency = DefaultFilterConcurrency
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ type Gossip struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Parse the pubkeys for the pinned syncers.
|
// Parse the pubkeys for the pinned syncers.
|
||||||
|
|
||||||
func (g *Gossip) Parse() error {
|
func (g *Gossip) Parse() error {
|
||||||
pinnedSyncers := make(discovery.PinnedSyncers)
|
pinnedSyncers := make(discovery.PinnedSyncers)
|
||||||
for _, pubkeyStr := range g.PinnedSyncersRaw {
|
for _, pubkeyStr := range g.PinnedSyncersRaw {
|
||||||
|
|||||||
Reference in New Issue
Block a user