Commit 58fc2c67 authored by zelig's avatar zelig Committed by Felix Lange

important fix for peer pubkey. when taken from identity, chop first format byte!

parent 923504ce
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment