From abc4f2b425f5873bf1ca96958b3fb6ffa3981520 Mon Sep 17 00:00:00 2001 From: David Kua Date: Thu, 3 Jul 2014 13:21:04 -0400 Subject: [PATCH] Fixed deprecated port problem. A la this commit https://github.com/conformal/btcwire/commit/c4135db7288579b2503007d1de88936e33d90033 to conformal/btcwire the MainPort was moved to conformal/btcnet. This changed the API and cause btc-crawl not to be go-get-able. --- seed.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seed.go b/seed.go index 2fcd57f..b7ce380 100644 --- a/seed.go +++ b/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)) } }