-
Notifications
You must be signed in to change notification settings - Fork 37
Modity flashblocks ws bind/port flags #71
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,7 +23,7 @@ pub struct OpRbuilderConfig { | |
| http_port: Option<u16>, | ||
| network_port: Option<u16>, | ||
| builder_private_key: Option<String>, | ||
| flashblocks_ws_url: Option<String>, | ||
| flashblocks_port: Option<u16>, | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using port here since we do not really have any utility to change the bind address during tests. |
||
| chain_block_time: Option<u64>, | ||
| flashbots_block_time: Option<u64>, | ||
| with_revert_protection: Option<bool>, | ||
|
|
@@ -71,8 +71,8 @@ impl OpRbuilderConfig { | |
| self | ||
| } | ||
|
|
||
| pub fn with_flashblocks_ws_url(mut self, url: &str) -> Self { | ||
| self.flashblocks_ws_url = Some(url.to_string()); | ||
| pub fn with_flashblocks_port(mut self, port: u16) -> Self { | ||
| self.flashblocks_port = Some(port); | ||
| self | ||
| } | ||
|
|
||
|
|
@@ -152,11 +152,11 @@ impl Service for OpRbuilderConfig { | |
| .arg(http_port.to_string()); | ||
| } | ||
|
|
||
| if let Some(flashblocks_ws_url) = &self.flashblocks_ws_url { | ||
| if let Some(flashblocks_port) = &self.flashblocks_port { | ||
| cmd.arg("--rollup.enable-flashblocks").arg("true"); | ||
|
||
|
|
||
| cmd.arg("--rollup.flashblocks-ws-url") | ||
| .arg(flashblocks_ws_url); | ||
| cmd.arg("--flashblocks.addr").arg("127.0.0.1"); | ||
| cmd.arg("--flashblocks.port") | ||
| .arg(flashblocks_port.to_string()); | ||
| } | ||
|
|
||
| if let Some(chain_block_time) = self.chain_block_time { | ||
|
|
||
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.
We can have a followup issue to deprecate this flags.