Skip to content

Commit

Permalink
precommit: Fix gofumpt, unkeyed literals (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
echarrod authored Oct 26, 2023
1 parent f1852ae commit eba9c3f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion bitpayaddr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
20 changes: 10 additions & 10 deletions seeds.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit eba9c3f

Please sign in to comment.