consensus/clique: fix block number unmarshal (#23961)

* clique: fix block number unmarshal

* clique: rename
This commit is contained in:
Sina Mahmoodi 2021-11-24 14:12:26 +01:00 committed by GitHub
parent 8151dd67e1
commit 66ee9422f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -196,7 +196,11 @@ func (sb *blockNumberOrHashOrRLP) UnmarshalJSON(data []byte) error {
if err := json.Unmarshal(data, &input); err != nil { if err := json.Unmarshal(data, &input); err != nil {
return err return err
} }
sb.RLP = hexutil.MustDecode(input) blob, err := hexutil.Decode(input)
if err != nil {
return err
}
sb.RLP = blob
return nil return nil
} }