-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
feat: implement EIP-7742 #7232
base: devnet-5
Are you sure you want to change the base?
feat: implement EIP-7742 #7232
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## devnet-5 #7232 +/- ##
============================================
- Coverage 49.08% 48.40% -0.68%
============================================
Files 600 602 +2
Lines 40241 40355 +114
Branches 2110 2062 -48
============================================
- Hits 19753 19535 -218
- Misses 20450 20782 +332
Partials 38 38 |
Performance Report✔️ no performance regression detected Full benchmark results
|
Included for alpha.10 |
@@ -284,4 +288,20 @@ Will double processing times. Use only for debugging purposes.", | |||
default: defaultOptions.chain.maxCPStateEpochsInMemory, | |||
group: "chain", | |||
}, | |||
|
|||
"chain.targetBlobsPerBlock": { |
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.
these values will be part of spec config
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.
Setting 4/8 or 6/9 is part of the scope of EIP-7691. Will open a separate PR for it.
EIP-7742 only sets target = max / 2 and no new config value
This reverts commit 26b6bc6.
(payloadAttributes as electra.SSEPayloadAttributes["payloadAttributes"]).targetBlobsPerBlock = Math.floor( | ||
MAX_BLOBS_PER_BLOCK / 2 | ||
); | ||
(payloadAttributes as electra.SSEPayloadAttributes["payloadAttributes"]).maxBlobsPerBlock = MAX_BLOBS_PER_BLOCK; |
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.
cast to electra.SSEPayloadAttributes
once
@@ -201,7 +201,8 @@ export class ExecutionEngineHttp implements IExecutionEngine { | |||
executionPayload: ExecutionPayload, | |||
versionedHashes?: VersionedHashes, | |||
parentBlockRoot?: Root, | |||
executionRequests?: ExecutionRequests | |||
executionRequests?: ExecutionRequests, | |||
maxBlobsPerBlock?: number |
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.
verifyBlocksExecutionPayload
passed in targetBlobsPerBlock
which is correct as in the api but here it's maxBlobsPerBlock
need to wait for eip-7742 execution api to be merged |
Converting to draft as there is a blocker for the EIP. |
Closes #7176