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@byzantine-lab.io>2019-06-12 17:27:19 +0800
commit83cd58f14a2000a226f37d5bb93ce5b1af8e2927 (patch)
tree1e2ea134c99a92461f424a745ac284919b427e5f /dex/handler.go
parent88ef6b9a6749e0ec1697107ff21422f314e69f9b (diff)
downloadgo-tangerine-83cd58f14a2000a226f37d5bb93ce5b1af8e2927.tar.gz
go-tangerine-83cd58f14a2000a226f37d5bb93ce5b1af8e2927.tar.zst
go-tangerine-83cd58f14a2000a226f37d5bb93ce5b1af8e2927.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