mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
les: fixed peer id format
This commit is contained in:
parent
729bf365b5
commit
1cd1b017cf
1 changed files with 1 additions and 3 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue