-
Notifications
You must be signed in to change notification settings - Fork 87
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
base: develop
Are you sure you want to change the base?
Conversation
There is still something missing here because I cannot merge with the default config. |
Benchmark results for
|
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. |
@@ -169,9 +173,47 @@ impl L1Config { | |||
} | |||
|
|||
pub fn create_relays(&self) -> eyre::Result<Vec<MevBoostRelay>> { | |||
let mut relays = DEFAULT_RELAYS.to_vec(); |
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.
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>, |
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.
A RelayConfig with no url makes no sense. Why the Option?
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.
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.
π Summary
Closes #305
π‘ Motivation and Context
β I have completed the following steps:
make lint
make test