-
Notifications
You must be signed in to change notification settings - Fork 171
Fast relay concept is split between fast and independent #605
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
Conversation
| !has_replacement_uuid && !is_expensive_block | ||
| inc_initiated_submissions(optimistic, !only_fast, !only_independent); | ||
| move |relay: &MevBoostRelayBidSubmitter| { | ||
| if only_independent && !relay.is_independent() { |
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.
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?
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.
Updated the comments.
| .any(|o| match o { | ||
| Order::Bundle(bundle) => bundle.replacement_data.is_some(), | ||
| Order::Tx(_) => false, | ||
| Order::ShareBundle(_) => false, |
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.
share bundles can have replacements too
|
here is a thread with explanations https://collective.flashbots.net/t/updated-mev-boost-relay-settings/4881 |
dvush
left a comment
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.
I don't have issues with implementation, only the docs, so I'll approve.
📝 Summary
✅ I have completed the following steps:
make lintmake test