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

* clique: fix block number unmarshal

* clique: rename
pull/23967/head
Sina Mahmoodi 3 years ago committed by GitHub
parent 8151dd67e1
commit 66ee9422f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      consensus/clique/api.go

@ -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…
Cancel
Save