aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSheldon <11510383@mail.sustc.edu.cn>2018-11-15 17:10:45 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-11-15 17:10:45 +0800
commitb8a2ac3fcf4c8249bd997969821feb4f9d0a428a (patch)
tree6ca0b18fa25d3cec60d52ff566bbd94fff2bbcbf
parent9a000601c6c4e4f8134caedba1957ffe28d2b659 (diff)
downloadgo-tangerine-b8a2ac3fcf4c8249bd997969821feb4f9d0a428a.tar.gz
go-tangerine-b8a2ac3fcf4c8249bd997969821feb4f9d0a428a.tar.zst
go-tangerine-b8a2ac3fcf4c8249bd997969821feb4f9d0a428a.zip
les: fix pubkey index typo (#18093)
-rw-r--r--les/serverpool.go2
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) {