aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-01-31 20:03:13 +0800
committerobscuren <geffobscura@gmail.com>2014-01-31 20:03:13 +0800
commit8c09602a8b6dead7e03d0d4b9fe61cbd02d8a844 (patch)
treebcd14303c070355d353b80c7b6f5f255581ebb7c
parentda66eddfccf86eb5dc036e023ddc2e0278105706 (diff)
downloadgo-tangerine-8c09602a8b6dead7e03d0d4b9fe61cbd02d8a844.tar
go-tangerine-8c09602a8b6dead7e03d0d4b9fe61cbd02d8a844.tar.gz
go-tangerine-8c09602a8b6dead7e03d0d4b9fe61cbd02d8a844.tar.bz2
go-tangerine-8c09602a8b6dead7e03d0d4b9fe61cbd02d8a844.tar.lz
go-tangerine-8c09602a8b6dead7e03d0d4b9fe61cbd02d8a844.tar.xz
go-tangerine-8c09602a8b6dead7e03d0d4b9fe61cbd02d8a844.tar.zst
go-tangerine-8c09602a8b6dead7e03d0d4b9fe61cbd02d8a844.zip
Self connect
-rw-r--r--ethereum.go9
-rw-r--r--peer.go1
2 files changed, 0 insertions, 10 deletions
diff --git a/ethereum.go b/ethereum.go
index b9fc94d50..0137f68de 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -187,15 +187,6 @@ func (s *Ethereum) Start() {
// This is mainly for testing to create a "network"
if ethutil.Config.Debug {
log.Println("Connection listening disabled. Acting as client")
-
- /*
- err = s.ConnectToPeer("localhost:12345")
- if err != nil {
- log.Println("Error starting ethereum", err)
-
- s.Stop()
- }
- */
} else {
log.Fatal(err)
}
diff --git a/peer.go b/peer.go
index 410e310f5..2c442dc82 100644
--- a/peer.go
+++ b/peer.go
@@ -282,7 +282,6 @@ func (p *Peer) Start(seed bool) {
peerHost, _, _ := net.SplitHostPort(p.conn.LocalAddr().String())
servHost, _, _ := net.SplitHostPort(p.conn.RemoteAddr().String())
- log.Println(peerHost, servHost)
if peerHost == servHost {
log.Println("Connected to self")