forked from martinboehm/bchutil
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathseeds.go
More file actions
26 lines (22 loc) · 700 Bytes
/
seeds.go
File metadata and controls
26 lines (22 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package ecashutil
import "github.com/martinboehm/btcutil/chaincfg"
var MainnetDNSSeeds = []chaincfg.DNSSeed{
{"seed.bitcoinabc.org", true},
{"seed-abc.bitcoinforks.org", true},
{"seed.bitcoinunlimited.info", true},
{"seed.bitprim.org", true},
{"seed.deadalnix.me", true},
}
var TestnetDNSSeeds = []chaincfg.DNSSeed{
{"testnet-seed.bitcoinabc.org", true},
{"testnet-seed-abc.bitcoinforks.org", true},
{"testnet-seed.bitcoinunlimited.info", true},
{"testnet-seed.bitprim.org", true},
{"testnet-seed.deadalnix.me", true},
}
func GetDNSSeed(params *chaincfg.Params) []chaincfg.DNSSeed {
if params.Name == chaincfg.MainNetParams.Name {
return MainnetDNSSeeds
}
return TestnetDNSSeeds
}