-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(protocol): split oracle proving into a function #13552
Conversation
Codecov Report
@@ Coverage Diff @@
## major_protocol_upgrade_rebase #13552 +/- ##
=================================================================
- Coverage 39.21% 38.85% -0.36%
=================================================================
Files 113 113
Lines 3445 3464 +19
Branches 392 399 +7
=================================================================
- Hits 1351 1346 -5
- Misses 2005 2029 +24
Partials 89 89
*This pull request uses carry forward flags. Click here to find out more.
... and 3 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
state.forkChoiceIds[id][oracle.parentHash] = fcId; | ||
} else { | ||
fc = blk.forkChoices[fcId]; | ||
if (fc.prover != address(0)) revert L1_ALREADY_PROVEN(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe still allow overwriting even when already proven by another prover? Only possible when ZKPs are incomplete/buggy, but we're likely to need something that'll allow us to do this somehow.
This PR allows the oracle prover to batch-prove multiple blocks in one L1 transaction to save cost. These are the following benefits: