mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
dashboard, p2p: remove println, change doc
This commit is contained in:
parent
0f74ca792f
commit
be5ef70bd3
3 changed files with 1 additions and 16 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -501,8 +501,6 @@ func (db *Dashboard) collectPeerData() {
|
|||
Protocols: peer.Protocols,
|
||||
})
|
||||
}
|
||||
//s, _ := json.Marshal(info.Protocols)
|
||||
//fmt.Println(string(s))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue