diff options
author | Sonic <sonic@dexon.org> | 2018-12-04 06:46:51 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:54 +0800 |
commit | 114a67a1e4f70e186617b01e766fb49793b73b60 (patch) | |
tree | a94b2297b5cbd04afad0037523404b4e0b083bae /dex/handler.go | |
parent | c4ee0ef189bc00661c7ca8c1d3e94e929aa5eee1 (diff) | |
download | go-tangerine-114a67a1e4f70e186617b01e766fb49793b73b60.tar go-tangerine-114a67a1e4f70e186617b01e766fb49793b73b60.tar.gz go-tangerine-114a67a1e4f70e186617b01e766fb49793b73b60.tar.bz2 go-tangerine-114a67a1e4f70e186617b01e766fb49793b73b60.tar.lz go-tangerine-114a67a1e4f70e186617b01e766fb49793b73b60.tar.xz go-tangerine-114a67a1e4f70e186617b01e766fb49793b73b60.tar.zst go-tangerine-114a67a1e4f70e186617b01e766fb49793b73b60.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 |