Skip to content

Commit

Permalink
consensus/clique: fix block number unmarshal (ethereum#23961)
Browse files Browse the repository at this point in the history
* clique: fix block number unmarshal

* clique: rename
  • Loading branch information
s1na authored and jagdeep sidhu committed Nov 24, 2021
1 parent 0cb3ad4 commit 7208db8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion consensus/clique/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,11 @@ func (sb *blockNumberOrHashOrRLP) UnmarshalJSON(data []byte) error {
if err := json.Unmarshal(data, &input); err != nil {
return err
}
sb.RLP = hexutil.MustDecode(input)
blob, err := hexutil.Decode(input)
if err != nil {
return err
}
sb.RLP = blob
return nil
}

Expand Down

0 comments on commit 7208db8

Please sign in to comment.