aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2018-12-04 06:46:51 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commitd745eca535276a5553837afe937fae1a2fff60eb (patch)
treec025feb7a8dec6a6379d5b7540ac987596a77612
parentd50de79ca7b24ea27823d53b8393646fbd30f5a4 (diff)
downloaddexon-d745eca535276a5553837afe937fae1a2fff60eb.tar.gz
dexon-d745eca535276a5553837afe937fae1a2fff60eb.tar.zst
dexon-d745eca535276a5553837afe937fae1a2fff60eb.zip
dex: use whole id to query peer info (#74)
-rw-r--r--dex/handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dex/handler.go b/dex/handler.go
index 99bceb80a..997ce2c47 100644
--- a/dex/handler.go
+++ b/dex/handler.go
@@ -199,7 +199,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