-
-
Notifications
You must be signed in to change notification settings - Fork 311
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
fix: enforce strict timeout for builder to provide bid #7151
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## unstable #7151 +/- ##
============================================
+ Coverage 49.12% 49.17% +0.04%
============================================
Files 597 597
Lines 39718 39765 +47
Branches 2085 2090 +5
============================================
+ Hits 19512 19554 +42
- Misses 20165 20170 +5
Partials 41 41 |
Performance Report✔️ no performance regression detected Full benchmark results
|
* Duration given to the builder to provide a `SignedBuilderBid` before the deadline | ||
* is reached, aborting the external builder flow in favor of the local build process. | ||
*/ | ||
const BUILDER_PROPOSAL_DELAY_TOLERANCE = 1000; |
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.
this is too tight, 1.5 sec seems more reasonable
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.
mev-boost uses a default value of 950ms (slightly lower to account for passing response to CL), this is what all other CLs use and the spec defines
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.
as discussed on discord, this is as per spec
* fix: enforce strict timeout for builder to provide bid * Use math.round
🎉 This PR is included in v1.23.0 🎉 |
Motivation
Adhere to spec and enforce
BUILDER_PROPOSAL_DELAY_TOLERANCE
when requesting a bid from builder viagetHeader
api. This timeout is enforced by mev-boost (and other sidecars) as well but those allow to configure it and play timing games.Description
getHeader
request as per builder spec