Skip to content
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

Fail if no relays are configured #320

Merged
merged 2 commits into from
Jan 3, 2025
Merged

Conversation

ferranbt
Copy link
Contributor

@ferranbt ferranbt commented Dec 31, 2024

πŸ“ Summary

Closes #304

πŸ’‘ Motivation and Context


βœ… I have completed the following steps:

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

Copy link

github-actions bot commented Dec 31, 2024

Benchmark results for b5b550c

Report: https://flashbots-rbuilder-ci-stats.s3.us-east-2.amazonaws.com/benchmark/b5b550c-821a88c/report/index.html

Date (UTC) 2024-12-31T15:29:52+00:00
Commit b5b550ccbb8db477ef889f78d34386150b40171d
Base SHA 821a88c160c1cc7f8c2a64085b63988f536e5147

Significant changes

Benchmark Mean Status
gather_nodes_empty_account 3.23% Performance has degraded.

@ZanCorDX
Copy link
Contributor

Why do you check for !self.dry_run && relays.is_empty()?
Wouldn't it also fail in dryrun mode with no relays since it can't get the slot info on tha main loop?

@ferranbt
Copy link
Contributor Author

True, I have to do only relays.is_empty() only.

Comment on lines +281 to +283
if relays.is_empty() {
eyre::bail!("No relays provided");
}
Copy link
Contributor

Choose a reason for hiding this comment

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

op-rbuilder doesn't require relays. With all the assumptions the new_builder method makes about L1 specific config, maybe it should be renamed new_l1_builder?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree, my goal is to end up with a chain-agnostic core block building and then make LiveBuilder the specific instance that "wires" that block builder for the Ethereum L1 chain.

@ferranbt ferranbt merged commit a0ce33f into develop Jan 3, 2025
6 checks passed
@ferranbt ferranbt deleted the ferranbt/fail-if-no-relays branch January 3, 2025 16:01
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.

If dry_run is not enabled and there are no relays set, the builder should fail
3 participants