mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-04-02 16:15:54 +00:00
consensus/clique: fix block number unmarshal (#23961)
* clique: fix block number unmarshal * clique: rename
This commit is contained in:
parent
8151dd67e1
commit
66ee9422f5
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue