reth icon indicating copy to clipboard operation
reth copied to clipboard

Allow for state root validation on sidechains

Open Rjected opened this issue 2 years ago • 0 comments

Describe the feature

Many engine API hive tests require that we are able to compute the state root on sidechains, which are produced using newPayload. These tests expect us to return VALID if we can validate the payload in its sidechain, including validating the state root. We currently return ACCEPTED, which other clients only return if they are missing data to validate the sidechain block.

To support this, we would need to:

  • unwind state to the point where the sidechain forked off the canonical chain
  • apply sidechain state changes
  • calculate and validate the merkle root
  • re-apply the unwinded changes

Additional context

No response

Rjected avatar Jun 08 '23 05:06 Rjected