important fix for peer pubkey. when taken from identity, chop first format byte!
This commit is contained in:
parent
923504ce3d
commit
58fc2c679b
|
@ -147,7 +147,7 @@ func (self *Peer) Pubkey() (pubkey []byte) {
|
||||||
defer self.infolock.Unlock()
|
defer self.infolock.Unlock()
|
||||||
switch {
|
switch {
|
||||||
case self.identity != nil:
|
case self.identity != nil:
|
||||||
pubkey = self.identity.Pubkey()
|
pubkey = self.identity.Pubkey()[1:]
|
||||||
case self.dialAddr != nil:
|
case self.dialAddr != nil:
|
||||||
pubkey = self.dialAddr.Pubkey
|
pubkey = self.dialAddr.Pubkey
|
||||||
case self.listenAddr != nil:
|
case self.listenAddr != nil:
|
||||||
|
|
Loading…
Reference in New Issue