From 74ef96312444634cbf33934a5603bc08a031a3ab Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sun, 3 Sep 2017 16:53:28 -0700 Subject: [PATCH] chains: add a set of BOLT-0010 DNS seeds for bitcoin --- chainregistry.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/chainregistry.go b/chainregistry.go index 2c35743e..180ae798 100644 --- a/chainregistry.go +++ b/chainregistry.go @@ -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