diff options
author | Sheldon <11510383@mail.sustc.edu.cn> | 2018-11-15 17:10:45 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-11-15 17:10:45 +0800 |
commit | b8a2ac3fcf4c8249bd997969821feb4f9d0a428a (patch) | |
tree | 6ca0b18fa25d3cec60d52ff566bbd94fff2bbcbf | |
parent | 9a000601c6c4e4f8134caedba1957ffe28d2b659 (diff) | |
download | go-tangerine-b8a2ac3fcf4c8249bd997969821feb4f9d0a428a.tar go-tangerine-b8a2ac3fcf4c8249bd997969821feb4f9d0a428a.tar.gz go-tangerine-b8a2ac3fcf4c8249bd997969821feb4f9d0a428a.tar.bz2 go-tangerine-b8a2ac3fcf4c8249bd997969821feb4f9d0a428a.tar.lz go-tangerine-b8a2ac3fcf4c8249bd997969821feb4f9d0a428a.tar.xz go-tangerine-b8a2ac3fcf4c8249bd997969821feb4f9d0a428a.tar.zst go-tangerine-b8a2ac3fcf4c8249bd997969821feb4f9d0a428a.zip |
les: fix pubkey index typo (#18093)
-rw-r--r-- | les/serverpool.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/les/serverpool.go b/les/serverpool.go index 0fe6e49b6..52b54b371 100644 --- a/les/serverpool.go +++ b/les/serverpool.go @@ -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) { |