-
Notifications
You must be signed in to change notification settings - Fork 1.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
Allow opting out of beacon engine timestamp check #11651
Comments
Do you mind me working on this one? |
the way this should be done is by extending reth/crates/engine/primitives/src/lib.rs Line 45 in 0dbc374
with checks for payload against header and then plugged into the engine impl |
@mattsse thanks for the response! I think I might be missing something. From my read, implementing Specifically in the case of forkchoice updated, the
which then uses the consensus engine handle to normally call the new engine-tree logic here:
In the engine-tree logic it appears the payload is still unconditionally subject to the timestamp check here reth/crates/engine/tree/src/tree/mod.rs Line 2491 in 0dbc374
Which is executed by the reth/crates/engine/tree/src/tree/mod.rs Line 970 in 0dbc374
Is my understanding correct here? EDIT: rereading your comment again, is your suggestion to create a PR that adds a method to the |
I thought about this a bit, and I think we could start introducing a different trait for this entirely like a new validator trait or similar |
Makes sense. I will try and work on something later this week. Feel free to assign it to me |
This issue is stale because it has been open for 21 days with no activity. |
Describe the feature
To support sub second block times, it would be helpful to disable the timestamp check here
reth/crates/consensus/beacon/src/engine/mod.rs
Lines 1174 to 1176 in 1ba631b
The Ethereum engine api spec enforces that the timestamp on new execution block must be greater then the previous block. Execution block timestamps are denominated in seconds, so if blocks are being requested within a second of each other they are likely to have the exact same timestamp and Reth will not create/validate the block.
To quickly fix this I propose allowing a way to opt out of the timestamp check - either with a runtime configuration or compilation feature gate. @mattsse mentioned here that they have some pointers on how to tackle this.
Additional context
No response
Tasks
The text was updated successfully, but these errors were encountered: