mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 14:06:45 +01:00
important fix for peer pubkey. when taken from identity, chop first format byte!
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user