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

Add list of default relays and config to enable them #321

Merged
merged 13 commits into from
Jan 7, 2025

Conversation

ferranbt
Copy link
Contributor

πŸ“ Summary

Closes #305

πŸ’‘ Motivation and Context


βœ… I have completed the following steps:

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

@ferranbt ferranbt marked this pull request as draft December 31, 2024 10:22
@ferranbt
Copy link
Contributor Author

There is still something missing here because I cannot merge with the default config.

Copy link

github-actions bot commented Dec 31, 2024

Benchmark results for d06617c

Report: https://flashbots-rbuilder-ci-stats.s3.us-east-2.amazonaws.com/benchmark/d06617c-06840a8/report/index.html

Date (UTC) 2025-01-06T18:56:52+00:00
Commit d06617c33d6e62c40109b0b045b53131d652f132
Base SHA 06840a87a5330a776f1566f7831b406738616b96

Significant changes

Benchmark Mean Status
cloning_3000_branch_node_size_elements 2.35% Performance has degraded.
hashing_3000_elements_with_cache 2.77% Performance has degraded.
gather_nodes_big_changes_account 2.17% Performance has degraded.
gather_nodes_storage_tries 5.81% Performance has degraded.
MEV-Boost SubmitBlock serialization/JSON encoding -7.21% Performance has improved.
gather_nodes_empty_account 2.82% Performance has degraded.

@ferranbt ferranbt marked this pull request as ready for review December 31, 2024 16:55
@@ -169,9 +173,47 @@ impl L1Config {
}

pub fn create_relays(&self) -> eyre::Result<Vec<MevBoostRelay>> {
let mut relays = DEFAULT_RELAYS.to_vec();
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it feel more natural/easy to use a map string->cfg instead of vector + find name?

@@ -11,7 +12,8 @@ pub type MevBoostRelayID = String;
#[serde(deny_unknown_fields)]
pub struct RelayConfig {
pub name: String,
pub url: String,
pub url: Option<String>,
Copy link
Contributor

Choose a reason for hiding this comment

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

A RelayConfig with no url makes no sense. Why the Option?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The idea is to be able to update one of the default relays like:

relays = ["flashbots"]

[[relays]]
name = "flashbots"
use_gzip_for_submit = true

But this cannot be done because url is required.

@ferranbt ferranbt merged commit 777e822 into develop Jan 7, 2025
5 checks passed
@ferranbt ferranbt deleted the ferranbt/feat-default-relays branch January 7, 2025 08:36
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.

Hardcode relay addresses in the builder
2 participants