diff options
author | Sonic <sonic@dexon.org> | 2018-12-04 06:46:51 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:19 +0800 |
commit | 83cd58f14a2000a226f37d5bb93ce5b1af8e2927 (patch) | |
tree | 1e2ea134c99a92461f424a745ac284919b427e5f /dex/handler.go | |
parent | 88ef6b9a6749e0ec1697107ff21422f314e69f9b (diff) | |
download | go-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.go | 2 |
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 |