consensus/clique: fix block number unmarshal (#23961)
* clique: fix block number unmarshal * clique: rename
This commit is contained in:
parent
8151dd67e1
commit
66ee9422f5
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user