-
Notifications
You must be signed in to change notification settings - Fork 781
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
Block v3 builder boost factor #5035
Block v3 builder boost factor #5035
Conversation
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.
Looks good to me!
…nore_builder_override_suggestion_threshold and builder_comparison_factor flags
ca921e0
to
f167ffd
Compare
I pushed up a commit that deprecates the following flags from the BN
As Jimmy mentioned, keeping these flags around is non spec compliant and the new I removed mentions of these deprecated flags in the documentation. Once new flags are added to the VC to support If we wanted to keep these flags around for the goerli fork I can quickly revert. Also, removing these flags affects the blinded block v2 endpoint. |
Thanks for the updates @eserilev! Example help text from previously deprecated flags: .arg(
Arg::with_name("count-unrealized")
.long("count-unrealized")
.hidden(true)
.help("This flag is deprecated and has no effect.")
.takes_value(true)
.default_value("true")
) |
So we definitely need to support something equivalent to I like the idea of deprecating it in the BN, and shifting it to the VC, per-validator. But we will need to include that before the release if we deprecate it here. In considering
I'm kind of leaning toward 2, and revisiting this later. I'm not sure EL's are even populating that with useful info at the moment. The config for whether or not to override the builder suggestion should probably also be made per-validator client, which would mean it'd have to be in the GET request for a block as a query param or something (so requires an API change). Also an EL could mimic |
I think we might want to keep respecting As for
I also think for the 4.6.0-rc.0 release (Deneb on Goerli) it would be OK to deprecate We can add the |
Ok cool, all good with me. Yea I think this PR is good as is for the goerli release modulo the small change Michael noted (and I think there's a compile error in a test) |
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.
LGTM. I just tweaked the CLI flags slightly so that:
ignore-builder-override-suggestion-threshold
is removed completely (it was never in stable, so we don't need backwards compatibility for it)- The deprecated flags still show in
--help
and the Lighthouse book. This might help some people who go looking for the flags in the book. - A warning is logged if either of the deprecated flags are provided.
Issue Addressed
ethereum/beacon-APIs#386
Proposed Changes
Add a
builder_boost_factor
query param to the block v3 endpoint as described in the beacon api specAdditional Info
warp will reject any
builder_boost_factor
query param larger thanu64::MAX
. Saturating math is used to make sure we dont overflow when calculating theboosted_relay_value
.This PR should be merged before #4813