From 921b3160db1359cf13b379dee22e6b02fcfeda89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felf=C3=B6ldi=20Zsolt?= Date: Wed, 17 Apr 2019 09:57:53 +0200 Subject: [PATCH] les: fix p2p.Protocol.PeerInfo (#19472) --- les/commons.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/les/commons.go b/les/commons.go index 32fd65449..d46479976 100644 --- a/les/commons.go +++ b/les/commons.go @@ -64,7 +64,7 @@ func (c *lesCommons) makeProtocols(versions []uint) []p2p.Protocol { return c.protocolManager.runPeer(version, p, rw) }, PeerInfo: func(id enode.ID) interface{} { - if p := c.protocolManager.peers.Peer(fmt.Sprintf("%x", id[:8])); p != nil { + if p := c.protocolManager.peers.Peer(fmt.Sprintf("%x", id.Bytes())); p != nil { return p.Info() } return nil