From 0b2bbcef07cfca898dcb5841b06818536bc0e299 Mon Sep 17 00:00:00 2001 From: Sonic Date: Tue, 4 Dec 2018 06:46:51 +0800 Subject: dex: use whole id to query peer info (#74) --- dex/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dex/handler.go b/dex/handler.go index 5cdff5d0c..c64da2c87 100644 --- a/dex/handler.go +++ b/dex/handler.go @@ -194,7 +194,7 @@ func NewProtocolManager( return manager.NodeInfo() }, PeerInfo: func(id enode.ID) interface{} { - if p := manager.peers.Peer(fmt.Sprintf("%x", id[:8])); p != nil { + if p := manager.peers.Peer(id.String()); p != nil { return p.Info() } return nil -- cgit