diff options
author | obscuren <geffobscura@gmail.com> | 2014-01-31 20:37:16 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-01-31 20:37:16 +0800 |
commit | ce69334988bb42e5dd1e6cb6c81d8d311babcf04 (patch) | |
tree | 2e02ed90e302e8bde001f1bdce131819b037b651 /peer.go | |
parent | 8c09602a8b6dead7e03d0d4b9fe61cbd02d8a844 (diff) | |
download | go-tangerine-ce69334988bb42e5dd1e6cb6c81d8d311babcf04.tar go-tangerine-ce69334988bb42e5dd1e6cb6c81d8d311babcf04.tar.gz go-tangerine-ce69334988bb42e5dd1e6cb6c81d8d311babcf04.tar.bz2 go-tangerine-ce69334988bb42e5dd1e6cb6c81d8d311babcf04.tar.lz go-tangerine-ce69334988bb42e5dd1e6cb6c81d8d311babcf04.tar.xz go-tangerine-ce69334988bb42e5dd1e6cb6c81d8d311babcf04.tar.zst go-tangerine-ce69334988bb42e5dd1e6cb6c81d8d311babcf04.zip |
For the testnet always 30303 for now to make it easy
Diffstat (limited to 'peer.go')
-rw-r--r-- | peer.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -374,19 +374,21 @@ func (p *Peer) handleHandshake(msg *ethwire.Msg) { } func (p *Peer) RlpData() []interface{} { - host, prt, err := net.SplitHostPort(p.conn.RemoteAddr().String()) + host, _, err := net.SplitHostPort(p.conn.RemoteAddr().String()) if err != nil { return nil } + /* FIXME port, err := strconv.Atoi(prt) if err != nil { return nil } + */ //port := ethutil.NumberToBytes(uint16(i), 16) - return []interface{}{host, port} + return []interface{}{host, uint16(30303) /*port*/} } func (p *Peer) RlpEncode() []byte { |