diff options
author | zelig <viktor.tron@gmail.com> | 2015-01-20 23:20:18 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-02-06 07:00:35 +0800 |
commit | 58fc2c679b3d3b987aeefc98aa22db5f02717638 (patch) | |
tree | 15e599dbe85e056fd6057b9ec9543f8c2beb73a3 /p2p | |
parent | 923504ce3df504a843cfa775d577ac99bdbfdb70 (diff) | |
download | go-tangerine-58fc2c679b3d3b987aeefc98aa22db5f02717638.tar go-tangerine-58fc2c679b3d3b987aeefc98aa22db5f02717638.tar.gz go-tangerine-58fc2c679b3d3b987aeefc98aa22db5f02717638.tar.bz2 go-tangerine-58fc2c679b3d3b987aeefc98aa22db5f02717638.tar.lz go-tangerine-58fc2c679b3d3b987aeefc98aa22db5f02717638.tar.xz go-tangerine-58fc2c679b3d3b987aeefc98aa22db5f02717638.tar.zst go-tangerine-58fc2c679b3d3b987aeefc98aa22db5f02717638.zip |
important fix for peer pubkey. when taken from identity, chop first format byte!
Diffstat (limited to 'p2p')
-rw-r--r-- | p2p/peer.go | 2 |
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: |