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:
David Kua 2014-07-03 13:21:04 -04:00
parent 146bba363c
commit abc4f2b425
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import (
"net" "net"
"sync" "sync"
"github.com/conformal/btcwire" "github.com/conformal/btcnet"
) )
func GetSeedsFromDNS(dnsSeeds []string) []string { func GetSeedsFromDNS(dnsSeeds []string) []string {
@ -33,7 +33,7 @@ func GetSeedsFromDNS(dnsSeeds []string) []string {
seeds := []string{} seeds := []string{}
for ips := range results { for ips := range results {
for _, ip := range ips { for _, ip := range ips {
seeds = append(seeds, net.JoinHostPort(ip.String(), btcwire.MainPort)) seeds = append(seeds, net.JoinHostPort(ip.String(), btcnet.MainNetParams.DefaultPort))
} }
} }