good morning!!!!

Skip to content
Snippets Groups Projects
Commit 8c09602a authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Self connect

parent da66eddf
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
......
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment