diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-30 05:33:59 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-30 05:33:59 +0800 |
commit | 74d701202583b49d29f5dbca00aec419bdee8e1d (patch) | |
tree | 0380f5d69dd604bf4b57f49faebd31c398f2fd67 /ethereum.go | |
parent | 5ca29381175d553bb764040e8cd892a4ba370645 (diff) | |
download | go-tangerine-74d701202583b49d29f5dbca00aec419bdee8e1d.tar.gz go-tangerine-74d701202583b49d29f5dbca00aec419bdee8e1d.tar.zst go-tangerine-74d701202583b49d29f5dbca00aec419bdee8e1d.zip |
Added temp seed
Diffstat (limited to 'ethereum.go')
-rw-r--r-- | ethereum.go | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/ethereum.go b/ethereum.go index 799e9cb39..395eba954 100644 --- a/ethereum.go +++ b/ethereum.go @@ -3,10 +3,8 @@ package eth import ( "container/list" "fmt" - "io/ioutil" "math/rand" "net" - "net/http" "strconv" "strings" "sync" @@ -21,7 +19,10 @@ import ( "github.com/ethereum/eth-go/ethwire" ) -const seedTextFileUri string = "http://www.ethereum.org/servers.poc3.txt" +const ( + seedTextFileUri string = "http://www.ethereum.org/servers.poc3.txt" + seedNodeAddress = "54.76.56.74:30303" +) var ethlogger = ethlog.NewLogger("SERV") @@ -421,22 +422,10 @@ func (s *Ethereum) Seed() { } // Connect to Peer list s.ProcessPeerList(peers) - } else { - // Fallback to servers.poc3.txt - resp, err := http.Get(seedTextFileUri) - if err != nil { - ethlogger.Warnln("Fetching seed failed:", err) - return - } - defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) - if err != nil { - ethlogger.Warnln("Reading seed failed:", err) - return - } - - s.ConnectToPeer(string(body)) } + + // XXX tmp + s.ConnectToPeer(seedNodeAddress) } func (s *Ethereum) peerHandler(listener net.Listener) { |