Skip to content

Commit

Permalink
Fix seeds list after hard fork (gcash#428)
Browse files Browse the repository at this point in the history
* Fix seeds in params.go

Remove invalid seeds service BAB clients, adding new seeds service BCH clients.

* Update params_test.go to reflect seed changes

Remove invalid seed from test suite and add new seeds in its place.
  • Loading branch information
checksum0 authored Dec 3, 2020
1 parent 872dd83 commit 81c98c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions chaincfg/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,10 @@ var MainNetParams = Params{
DefaultPort: "8333",
DNSSeeds: []DNSSeed{
{"seed.bchd.cash", true},
{"seed.bitcoinabc.org", true},
{"btccash-seeder.bitcoinunlimited.info", true},
{"seed-bch.bitcoinforks.org", true},
{"seed.bch.loping.net", true},
{"dnsseed.electroncash.de", true},
},

// Chain parameters
Expand Down Expand Up @@ -474,8 +475,8 @@ var TestNet3Params = Params{
DefaultPort: "18333",
DNSSeeds: []DNSSeed{
{"testnet-seed.bchd.cash", true},
{"testnet-seed.bitcoinabc.org", true},
{"testnet-seed-bch.bitcoinforks.org", true},
{"seed.tbch.loping.net", true},
},

// Chain parameters
Expand Down
5 changes: 3 additions & 2 deletions chaincfg/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ func TestMustRegisterPanic(t *testing.T) {
func TestMainNetSeeds(t *testing.T) {
expectedSeeds := []DNSSeed{
{"seed.bchd.cash", true},
{"seed.bitcoinabc.org", true},
{"btccash-seeder.bitcoinunlimited.info", true},
{"seed-bch.bitcoinforks.org", true},
{"seed.bch.loping.net", true},
{"dnsseed.electroncash.de", true},
}

if MainNetParams.DNSSeeds == nil {
Expand All @@ -65,8 +66,8 @@ func TestMainNetSeeds(t *testing.T) {
func TestTestNet3Seeds(t *testing.T) {
expectedSeeds := []DNSSeed{
{"testnet-seed.bchd.cash", true},
{"testnet-seed.bitcoinabc.org", true},
{"testnet-seed-bch.bitcoinforks.org", true},
{"seed.tbch.loping.net", true},
}

if TestNet3Params.DNSSeeds == nil {
Expand Down

0 comments on commit 81c98c2

Please sign in to comment.