chains: add a set of BOLT-0010 DNS seeds for bitcoin

This commit is contained in:
Olaoluwa Osuntokun 2017-09-03 16:53:28 -07:00
parent d5cc0441f4
commit 74ef963124
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -336,6 +336,18 @@ var (
bitcoinChain: bitcoinGenesis,
litecoinChain: litecoinGenesis,
}
// 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.
//
// TODO(roasbeef): extend and collapse these and chainparams.go into
// struct like chaincfg.Params
chainDNSSeeds = map[chainhash.Hash][]string{
bitcoinGenesis: []string{
"nodes.lightning.directory",
//"lseed.bitcoinstats.com",
},
}
)
// chainRegistry keeps track of the current chains