Skip to content

Conversation

@ZanCorDX
Copy link
Collaborator

📝 Summary

  • new flag "is_independent" for relays.
  • "fast_bid_threshold_eth" renamed to "independent_bid_threshold_eth"
  • Critical blocks (containing bundles with replacement ids) go only to fast relays. None -> true
  • Big blocks (bid > independent_bid_threshold_eth) go only to independent relays. None -> true

✅ I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

!has_replacement_uuid && !is_expensive_block
inc_initiated_submissions(optimistic, !only_fast, !only_independent);
move |relay: &MevBoostRelayBidSubmitter| {
if only_independent && !relay.is_independent() {
Copy link
Contributor

@dvush dvush May 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't fully understand the logic from the description and the docs and this code. This means the description can be improved.

Relays can be independent and fast at the same time?

  • only_fast bool is practically going to be true for every block
  • only_independent will be true for big blocks

So what will happen for big blocks with replacements?

They will be sent only to fast AND independent relays. Is this intended behavior?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the comments.

.any(|o| match o {
Order::Bundle(bundle) => bundle.replacement_data.is_some(),
Order::Tx(_) => false,
Order::ShareBundle(_) => false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

share bundles can have replacements too

@dvush
Copy link
Contributor

dvush commented May 1, 2025

here is a thread with explanations https://collective.flashbots.net/t/updated-mev-boost-relay-settings/4881

@dvush dvush self-requested a review May 1, 2025 09:07
Copy link
Contributor

@dvush dvush left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have issues with implementation, only the docs, so I'll approve.

@ZanCorDX ZanCorDX merged commit fe99a06 into develop May 2, 2025
4 checks passed
@ZanCorDX ZanCorDX deleted the independent-relays branch May 2, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants