diff --git a/bitpayaddr.go b/bitpayaddr.go index 04fc808..43211e9 100644 --- a/bitpayaddr.go +++ b/bitpayaddr.go @@ -52,7 +52,6 @@ func encodeBitpayAddress(hash160 []byte, netID byte) string { // When the address does not encode the network, such as in the case of a raw // public key, the address will be associated with the passed defaultNet. func DecodeBitpay(addr string, defaultNet *chaincfg.Params) (btcutil.Address, error) { - // Switch on decoded length to determine the type. decoded, netID, err := base58.CheckDecode(addr) if err != nil { diff --git a/seeds.go b/seeds.go index 19fa676..8911c27 100644 --- a/seeds.go +++ b/seeds.go @@ -3,19 +3,19 @@ package bchutil import "github.com/btcsuite/btcd/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}, + {Host: "seed.bitcoinabc.org", HasFiltering: true}, + {Host: "seed-abc.bitcoinforks.org", HasFiltering: true}, + {Host: "seed.bitcoinunlimited.info", HasFiltering: true}, + {Host: "seed.bitprim.org", HasFiltering: true}, + {Host: "seed.deadalnix.me", HasFiltering: 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}, + {Host: "testnet-seed.bitcoinabc.org", HasFiltering: true}, + {Host: "testnet-seed-abc.bitcoinforks.org", HasFiltering: true}, + {Host: "testnet-seed.bitcoinunlimited.info", HasFiltering: true}, + {Host: "testnet-seed.bitprim.org", HasFiltering: true}, + {Host: "testnet-seed.deadalnix.me", HasFiltering: true}, } func GetDNSSeed(params *chaincfg.Params) []chaincfg.DNSSeed {