You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any block that gets sent from op-node to op-reth is actually built by op-reth. Including reorg blocks. This means that if there would be a 1 block reorg, we would receive a FCU with head to block N-1 with attributes to build the new block N.
If this would be mainnet, since N-1 is an ancestor, we would just skip the payload job according to mainnet execution-api specs:
Client software MAY skip an update of the forkchoice state and MUST NOT begin a payload build process if forkchoiceState.headBlockHash references a VALID ancestor of the head of canonical chain, i.e. the ancestor passed [payload validation](https://github.com/ethereum/execution-apis/blob/main/src/engine/paris.md#payload-validation) process and deemed VALID. In the case of such an event, client software MUST return {payloadStatus: {status: VALID, latestValidHash: forkchoiceState.headBlockHash, validationError: null}, payloadId: null}.
In case of op-reth, we update the head , however we don't rewind the state, leading to the payload job being done against block N state instead of block N - 1 state
Describe the feature
Any block that gets sent from
op-node
toop-reth
is actually built byop-reth
. Including reorg blocks. This means that if there would be a 1 block reorg, we would receive a FCU with head to block N-1 with attributes to build the new block N.If this would be mainnet, since N-1 is an ancestor, we would just skip the payload job according to mainnet execution-api specs:
In case of
op-reth
, we update the head , however we don't rewind the state, leading to the payload job being done against block N state instead of block N - 1 statereth/crates/consensus/beacon/src/engine/mod.rs
Lines 448 to 464 in 79d505a
reth/crates/consensus/beacon/src/engine/mod.rs
Lines 406 to 425 in 79d505a
Additional context
No response
The text was updated successfully, but these errors were encountered: