mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
les: fix pubkey index typo
This commit is contained in:
parent
c41e1bd1eb
commit
406e04fc92
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue