Skip to content

[Core Protocol] What is the flow when deposit tx execution failed in L2 #118

Closed Answered by ajsutton
GrapeBaBa asked this question in Core Protocol
Discussion options

You must be logged in to vote
  1. Correct, a deposit tx should never make a block invalid (because the sequencer is forced to include all deposit tx)
  2. Correct, the EVM will revert and no state changes from EVM execution are peristed. However, any ETH minted by the deposit tx will remain minted and the nonce of the sender on L2 is still incremented for a failed deposit tx. https://github.com/ethereum-optimism/optimism/blob/47ba316de3e146194de05d53e5afc729a34649e0/op-e2e/deposit_test.go#L16 tests this behaviour with op-geth.
  3. The user doesn't necessarily need to do anything but it depends on what the deposit tx was intended to do. There's no way to roll back the deposit transaction (L1 doesn't know about L2 so it has to assu…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by GrapeBaBa
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-protocol Questions relating to the core protocol and how the OP Stack works. discussion-metrics Used by Github Action to gather discussion metrics on the question and answer section.
2 participants