Skip to content

Commit

Permalink
les: fix pubkey index typo (#18093)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheldon authored and karalabe committed Nov 15, 2018
1 parent 9a00060 commit b8a2ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion les/serverpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ func (e *poolEntry) DecodeRLP(s *rlp.Stream) error {
}

func encodePubkey64(pub *ecdsa.PublicKey) []byte {
return crypto.FromECDSAPub(pub)[:1]
return crypto.FromECDSAPub(pub)[1:]
}

func decodePubkey64(b []byte) (*ecdsa.PublicKey, error) {
Expand Down

0 comments on commit b8a2ac3

Please sign in to comment.