aboutsummaryrefslogtreecommitdiffstats
path: root/dex/handler.go
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2018-12-04 06:46:51 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:54 +0800
commit114a67a1e4f70e186617b01e766fb49793b73b60 (patch)
treea94b2297b5cbd04afad0037523404b4e0b083bae /dex/handler.go
parentc4ee0ef189bc00661c7ca8c1d3e94e929aa5eee1 (diff)
downloaddexon-114a67a1e4f70e186617b01e766fb49793b73b60.tar.gz
dexon-114a67a1e4f70e186617b01e766fb49793b73b60.tar.zst
dexon-114a67a1e4f70e186617b01e766fb49793b73b60.zip
dex: use whole id to query peer info (#74)
Diffstat (limited to 'dex/handler.go')
-rw-r--r--dex/handler.go2
1 files changed, 1 insertions, 1 deletions
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