mirror of https://github.com/BTCPrivate/lnd.git
chainregistry: add shim for TCP fallback for current DNS seed
This commit is contained in:
parent
5b226a9d37
commit
991a2fbb5f
|
@ -343,12 +343,21 @@ var (
|
||||||
// chainDNSSeeds is a map of a chain's hash to the set of DNS seeds
|
// chainDNSSeeds is a map of a chain's hash to the set of DNS seeds
|
||||||
// that will be use to bootstrap peers upon first startup.
|
// that will be use to bootstrap peers upon first startup.
|
||||||
//
|
//
|
||||||
|
// The first item in the array is the primary host we'll use to attempt
|
||||||
|
// the SRV lookup we require. If we're unable to receive a response
|
||||||
|
// over UDP, then we'll fall back to manual TCP resolution. The second
|
||||||
|
// item in the array is a special A record that we'll query in order to
|
||||||
|
// receive the IP address of the current authoritative DNS server for
|
||||||
|
// the network seed.
|
||||||
|
//
|
||||||
// TODO(roasbeef): extend and collapse these and chainparams.go into
|
// TODO(roasbeef): extend and collapse these and chainparams.go into
|
||||||
// struct like chaincfg.Params
|
// struct like chaincfg.Params
|
||||||
chainDNSSeeds = map[chainhash.Hash][]string{
|
chainDNSSeeds = map[chainhash.Hash][][2]string{
|
||||||
bitcoinGenesis: {
|
bitcoinGenesis: {
|
||||||
|
{
|
||||||
"nodes.lightning.directory",
|
"nodes.lightning.directory",
|
||||||
//"lseed.bitcoinstats.com",
|
"soa.nodes.lightning.directory",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue