dashboard, p2p: remove println, change doc

This commit is contained in:
Kurkó Mihály 2019-05-28 00:10:02 +03:00
parent 0f74ca792f
commit be5ef70bd3
3 changed files with 1 additions and 16 deletions

View file

@ -170,19 +170,6 @@ func (db *Dashboard) Start(server *p2p.Server) error {
}
}()
//s, _ := json.MarshalIndent(server.NodeInfo(), "", " ")
//fmt.Println(string(s))
switch {
case db.ethServ != nil:
if db.ethServ.IsLesServer() {
// fmt.Printf("%+v\n", db.ethServ)
}
case db.lesServ != nil:
//fmt.Println(db.lesServ.LesVersion())
default:
log.Error("Neither eth nor les")
}
return nil
}

View file

@ -501,8 +501,6 @@ func (db *Dashboard) collectPeerData() {
Protocols: peer.Protocols,
})
}
//s, _ := json.Marshal(info.Protocols)
//fmt.Println(string(s))
}
}
}

View file

@ -61,7 +61,7 @@ const (
PeerHandshakeSucceeded MeteredPeerEventType = iota
// PeerHandshakeFailed is the type of event emitted when a peer fails to
// make the encryption handshake or disconnects before it.
// make the handshake or disconnects before it.
PeerHandshakeFailed
// PeerDisconnected is the type of event emitted when a peer disconnects.