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

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

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 0e20616

Report: https://flashbots-rbuilder-ci-stats.s3.us-east-2.amazonaws.com/benchmark/0e20616-026df71/report/index.html

Date (UTC) 2025-01-03T23:20:12+00:00
Commit 0e206161a4f41dd3565e66baa6378756a8e7de42
Base SHA 026df71fdf2c8c6f6740682b6358d02f0e14bc09

Significant changes

Benchmark Mean Status
hashing_3000_branch_node_size_elements 4.45% Performance has degraded.
hashing_3000_elements 4.73% Performance has degraded.
gather_nodes_account_trie 10.17% Performance has degraded.
MEV-Boost SubmitBlock serialization/JSON encoding -34.82% Performance has improved.

@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.

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