les: fixed peer id format

This commit is contained in:
Zsolt Felfoldi 2019-03-09 00:26:02 +01:00
parent 729bf365b5
commit 1cd1b017cf

View file

@ -98,14 +98,12 @@ type peer struct {
}
func newPeer(version int, network uint64, isTrusted bool, p *p2p.Peer, rw p2p.MsgReadWriter) *peer {
id := p.ID()
return &peer{
Peer: p,
rw: rw,
version: version,
network: network,
id: fmt.Sprintf("%x", id),
id: fmt.Sprintf("%x", p.ID().Bytes()),
isTrusted: isTrusted,
}
}