diff options
author | Sonic <sonic@dexon.org> | 2018-12-04 06:46:51 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | 0b2bbcef07cfca898dcb5841b06818536bc0e299 (patch) | |
tree | e53d34db3368ed3f2c842baab9d8ae1e9964fa00 | |
parent | c7f9479a5c1fa013598da59cc56f60aa4d3bd5cb (diff) | |
download | dexon-0b2bbcef07cfca898dcb5841b06818536bc0e299.tar.gz dexon-0b2bbcef07cfca898dcb5841b06818536bc0e299.tar.zst dexon-0b2bbcef07cfca898dcb5841b06818536bc0e299.zip |
dex: use whole id to query peer info (#74)
-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 |