Skip to content

op-program: Replace invalid msg blocks with deposits-only block#13826

Merged
Inphi merged 12 commits intodevelopfrom
inphi/program-deposit-only
Jan 28, 2025
Merged

op-program: Replace invalid msg blocks with deposits-only block#13826
Inphi merged 12 commits intodevelopfrom
inphi/program-deposit-only

Conversation

@Inphi
Copy link
Copy Markdown
Contributor

@Inphi Inphi commented Jan 17, 2025

When an optimistic block in the transition state is found to contain invalid execution messages, it is replaced with a deposit-only block.
This follows the same consensus rules of cross-safety block promotion.

This patch also adds a sanity check to the prefetcher to ensure that the program execution generates the requested block. An error is logged when this does not occur. It would be difficult to detect otherwise as the client would wait indefinitely for a preimage that doesn't exist.

fixes #13882

Testing

Unit tests in the op-program with stubs. Action tests will be added in another PR.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.86%. Comparing base (1703583) to head (7f8d699).
Report is 3 commits behind head on develop.

❗ There is a different number of reports uploaded between BASE (1703583) and HEAD (7f8d699). Click for more details.

HEAD has 9 uploads less than BASE
Flag BASE (1703583) HEAD (7f8d699)
cannon-go-tests-32 3 0
cannon-go-tests-64 3 0
contracts-bedrock-tests 2 0
2 1
Additional details and impacted files
@@             Coverage Diff              @@
##           develop   #13826       +/-   ##
============================================
- Coverage    46.86%   11.86%   -35.01%     
============================================
  Files          973        3      -970     
  Lines        81334      413    -80921     
  Branches       759        0      -759     
============================================
- Hits         38118       49    -38069     
+ Misses       40245      346    -39899     
+ Partials      2971       18     -2953     
Flag Coverage Δ
cannon-go-tests-32 ?
cannon-go-tests-64 ?
contracts-bedrock-tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

see 971 files with indirect coverage changes

@Inphi Inphi force-pushed the inphi/program-deposit-only branch from 5abc4b8 to 497ce47 Compare January 17, 2025 04:31
@Inphi Inphi marked this pull request as ready for review January 23, 2025 16:35
@Inphi Inphi requested review from a team as code owners January 23, 2025 16:35
@Inphi Inphi requested review from ajsutton and refcell January 23, 2025 16:35
Copy link
Copy Markdown
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just a few nits.

@Inphi Inphi enabled auto-merge January 28, 2025 02:46
@Inphi Inphi added this pull request to the merge queue Jan 28, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 28, 2025
@Inphi Inphi added this pull request to the merge queue Jan 28, 2025
Merged via the queue into develop with commit 1a96f9c Jan 28, 2025
@Inphi Inphi deleted the inphi/program-deposit-only branch January 28, 2025 03:59
Rjected pushed a commit to paradigmxyz/optimism that referenced this pull request Feb 25, 2025
…reum-optimism#13826)

* op-program: Replace invalid msg blocks with deposits-only block

* wip

* setup some testing scenes

* rename mut fns

* add missing file

* misunderstood spec; append deposited tx

* use eth.ChainID

* construct the optimistic output preimage in the client

* add issue ref in todo

* ref todo
QuentinI pushed a commit to EspressoSystems/optimism-espresso-integration that referenced this pull request Mar 7, 2025
…reum-optimism#13826)

* op-program: Replace invalid msg blocks with deposits-only block

* wip

* setup some testing scenes

* rename mut fns

* add missing file

* misunderstood spec; append deposited tx

* use eth.ChainID

* construct the optimistic output preimage in the client

* add issue ref in todo

* ref todo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

op-program: Consolidation step reorgs to a deposit only block

2 participants