peer+server: log pubkey@addr

This commit is contained in:
Conner Fromknecht committed 2019-03-26 16:41:13 -07:00
1 parent 60467bef7b
commit 7358535725
2 files changed
+15 -14

No files matched your search

+1 -1
View File
@@ -638,7 +638,7 @@ func (p *peer) Disconnect(reason error) {
// String returns the string representation of this peer.
func (p *peer) String() string {
return p.conn.RemoteAddr().String()
return fmt.Sprintf("%x@%s", p.pubKeyBytes, p.conn.RemoteAddr())
}
// readNextMessage reads, and returns the next message on the wire along with