Fixed deprecated port problem.
A la this commit
c4135db728
to conformal/btcwire the MainPort was moved to conformal/btcnet. This
changed the API and cause btc-crawl not to be go-get-able.
This commit is contained in:
parent
146bba363c
commit
abc4f2b425
4
seed.go
4
seed.go
|
@ -4,7 +4,7 @@ import (
|
|||
"net"
|
||||
"sync"
|
||||
|
||||
"github.com/conformal/btcwire"
|
||||
"github.com/conformal/btcnet"
|
||||
)
|
||||
|
||||
func GetSeedsFromDNS(dnsSeeds []string) []string {
|
||||
|
@ -33,7 +33,7 @@ func GetSeedsFromDNS(dnsSeeds []string) []string {
|
|||
seeds := []string{}
|
||||
for ips := range results {
|
||||
for _, ip := range ips {
|
||||
seeds = append(seeds, net.JoinHostPort(ip.String(), btcwire.MainPort))
|
||||
seeds = append(seeds, net.JoinHostPort(ip.String(), btcnet.MainNetParams.DefaultPort))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue