mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
important fix for peer pubkey. when taken from identity, chop first format byte!
This commit is contained in:
parent
20ac18751e
commit
2d4f5985c0
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue