Skip to content

Commit 921b316

Browse files
zsfelfoldikaralabe
authored andcommitted
les: fix p2p.Protocol.PeerInfo (#19472)
1 parent c9d9a2d commit 921b316

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎les/commons.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func (c *lesCommons) makeProtocols(versions []uint) []p2p.Protocol {
6464
return c.protocolManager.runPeer(version, p, rw)
6565
},
6666
PeerInfo: func(id enode.ID) interface{} {
67-
if p := c.protocolManager.peers.Peer(fmt.Sprintf("%x", id[:8])); p != nil {
67+
if p := c.protocolManager.peers.Peer(fmt.Sprintf("%x", id.Bytes())); p != nil {
6868
return p.Info()
6969
}
7070
return nil

0 commit comments

Comments
 (0)