Merge 630bb0ec66
into aac621987e
This commit is contained in:
commit
1e9f00bc3e
|
@ -514,6 +514,11 @@ func (tx *Transaction) UnmarshalJSON(input []byte) error {
|
||||||
// Now set the inner transaction.
|
// Now set the inner transaction.
|
||||||
tx.setDecoded(inner, 0)
|
tx.setDecoded(inner, 0)
|
||||||
|
|
||||||
// TODO: check hash here?
|
if dec.Hash != (common.Hash{}) {
|
||||||
|
computedHash := tx.Hash()
|
||||||
|
if computedHash != dec.Hash {
|
||||||
|
return errors.New("transaction hash mismatch")
|
||||||
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue