mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 06:07:16 +01:00
multi: fix make fmt
This commit is contained in:
@@ -277,7 +277,7 @@ func (c *ChannelGraphBootstrapper) Name() string {
|
||||
// interface which implements peer bootstrapping via a special DNS seed as
|
||||
// defined in BOLT-0010. For further details concerning Lightning's current DNS
|
||||
// boot strapping protocol, see this link:
|
||||
// * https://github.com/lightningnetwork/lightning-rfc/blob/master/10-dns-bootstrap.md
|
||||
// - https://github.com/lightningnetwork/lightning-rfc/blob/master/10-dns-bootstrap.md
|
||||
type DNSSeedBootstrapper struct {
|
||||
// dnsSeeds is an array of two tuples we'll use for bootstrapping. The
|
||||
// first item in the tuple is the primary host we'll use to attempt the
|
||||
|
||||
@@ -202,8 +202,8 @@ func (m *SyncManager) Stop() {
|
||||
// 2. Finding new peers to receive graph updates from to ensure we don't only
|
||||
// receive them from the same set of peers.
|
||||
|
||||
// 3. Finding new peers to force a historical sync with to ensure we have as
|
||||
// much of the public network as possible.
|
||||
// 3. Finding new peers to force a historical sync with to ensure we have as
|
||||
// much of the public network as possible.
|
||||
//
|
||||
// NOTE: This must be run as a goroutine.
|
||||
func (m *SyncManager) syncerHandler() {
|
||||
|
||||
@@ -1608,13 +1608,15 @@ func TestGossipSyncerDelayDOS(t *testing.T) {
|
||||
// rate-limiting. The provided chanSeries should belong to syncer2.
|
||||
//
|
||||
// The state transition performed is the following:
|
||||
// syncer1 -- QueryShortChanIDs --> syncer2
|
||||
// chanSeries.FetchChanAnns()
|
||||
// syncer1 <-- ReplyShortChanIDsEnd -- syncer2
|
||||
//
|
||||
// syncer1 -- QueryShortChanIDs --> syncer2
|
||||
// chanSeries.FetchChanAnns()
|
||||
// syncer1 <-- ReplyShortChanIDsEnd -- syncer2
|
||||
//
|
||||
// If expDelayResponse is true, this method will assert that the call the
|
||||
// FetchChanAnns happens between:
|
||||
// [delayedQueryInterval-delayTolerance, delayedQueryInterval+delayTolerance].
|
||||
//
|
||||
// [delayedQueryInterval-delayTolerance, delayedQueryInterval+delayTolerance].
|
||||
func queryBatch(t *testing.T,
|
||||
msgChan1, msgChan2 chan []lnwire.Message,
|
||||
syncer1, syncer2 *GossipSyncer,
|
||||
|
||||
Reference in New Issue
Block a user