mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
p2p/enr: don't drop encoding errors during signing
This commit is contained in:
parent
f65565edc1
commit
172ff10d40
1 changed files with 2 additions and 2 deletions
|
|
@ -220,8 +220,8 @@ func (r *Record) signAndEncode(privkey *ecdsa.PrivateKey) error {
|
|||
// Put signature in front.
|
||||
r.signature = encodeCompactSignature(sig)
|
||||
list[0] = r.signature
|
||||
r.raw, _ = rlp.EncodeToBytes(list)
|
||||
return nil
|
||||
r.raw, err = rlp.EncodeToBytes(list)
|
||||
return err
|
||||
}
|
||||
|
||||
func (r *Record) verifySignature() error {
|
||||
|
|
|
|||
Loading…
Reference in a new issue