Use the configured min_bid and builder_boost_factor per builder - #11269
StefanBratanov wants to merge 2 commits into
Conversation
min_bid and builder_boost_factor per builder
5a0bfec to
355245e
Compare
355245e to
d8f3fe7
Compare
|
Seems a valid concern from gpt: [P1] Apply per-builder boosts before choosing the remote candidate: ExecutionPayloadBidSelector.java:155. selectBestRemoteBid first picks the highest raw value, then only this bid鈥檚 factor is applied. For local=95, bid A=100 at 90%, and bid B=90 at 120%, it selects A and then local, although B鈥檚 boosted value is 108 and should win. Rank all eligible bids by overflow-safe boosted value and add a multi-builder test. |
I am not sure about that on a second thought, if local bid is too small (most of the time), we are missing out on a larger bid potentially, if it has a lower |
We can definitely followup on that, but I'd apply the boost to all remote bids before comparing in this PR, otherwise the behaviour would be a bit strange. If even that is too complicated for this PR we can reconsider. |
PR Description
Use the configured per builder
min_bidandbuilder_boost_factorif builder is used when filtering remote bids and choosing local/remote bids.Fixed Issue(s)
related to #11194
Documentation
doc-change-requiredlabel to this PR if updates are required.Changelog
Note
Medium Risk
Changes block-production bid selection and thresholds; misconfigured per-builder values could reject valid bids or skew local vs builder choice, though P2P behavior is unchanged when no entry is attached.
Overview
Builder API bids now carry the full
BuilderEntryonRemoteBid(replacing a URL-only optional), so bid selection can use per-builder settings instead of only top-levelBuilderConfig.Remote bid filtering applies a shared
min_bidpredicate: Builder API bids use the entry鈥檚min_bid; P2P bids still use the globalmin_bid. Local vs remote comparison uses the entry鈥檚builder_boost_factorwhen the winning remote bid came from the Builder API, otherwise the top-level factor.BidForBlockstill exposes an optional builder URL, derived from the entry when present.Tests cover entry-level
min_bidfiltering and entrybuilder_boost_factoroverriding top-level config.Reviewed by Cursor Bugbot for commit d8f3fe7. Bugbot is set up for automated code reviews on this repo. Configure here.