aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/peer.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-01-20 23:20:18 +0800
committerFelix Lange <fjl@twurst.com>2015-02-06 07:00:35 +0800
commit58fc2c679b3d3b987aeefc98aa22db5f02717638 (patch)
tree15e599dbe85e056fd6057b9ec9543f8c2beb73a3 /p2p/peer.go
parent923504ce3df504a843cfa775d577ac99bdbfdb70 (diff)
downloaddexon-58fc2c679b3d3b987aeefc98aa22db5f02717638.tar.gz
dexon-58fc2c679b3d3b987aeefc98aa22db5f02717638.tar.zst
dexon-58fc2c679b3d3b987aeefc98aa22db5f02717638.zip
important fix for peer pubkey. when taken from identity, chop first format byte!
Diffstat (limited to 'p2p/peer.go')
-rw-r--r--p2p/peer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/peer.go b/p2p/peer.go
index e3e04ee65..e44eaab34 100644
--- a/p2p/peer.go
+++ b/p2p/peer.go
@@ -147,7 +147,7 @@ func (self *Peer) Pubkey() (pubkey []byte) {
defer self.infolock.Unlock()
switch {
case self.identity != nil:
- pubkey = self.identity.Pubkey()
+ pubkey = self.identity.Pubkey()[1:]
case self.dialAddr != nil:
pubkey = self.dialAddr.Pubkey
case self.listenAddr != nil: