mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-30 23:53:41 +02:00
multi: pass reset to ForEachNodeCached
This commit is contained in:
@@ -247,9 +247,9 @@ func (c *ChannelGraphBootstrapper) SampleNodeAddrs(_ context.Context,
|
||||
})
|
||||
}
|
||||
|
||||
c.tried[nID] = struct{}{}
|
||||
|
||||
return errFound
|
||||
}, func() {
|
||||
a = nil
|
||||
})
|
||||
if err != nil && !errors.Is(err, errFound) {
|
||||
return nil, err
|
||||
@@ -282,6 +282,14 @@ func (c *ChannelGraphBootstrapper) SampleNodeAddrs(_ context.Context,
|
||||
continue
|
||||
}
|
||||
|
||||
for _, addr := range sampleAddrs {
|
||||
nID := autopilot.NodeID(
|
||||
addr.IdentityKey.SerializeCompressed(),
|
||||
)
|
||||
|
||||
c.tried[nID] = struct{}{}
|
||||
}
|
||||
|
||||
addrs = append(addrs, sampleAddrs...)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user