Skip to content

Conversation

@ferranbt
Copy link
Contributor

📝 Summary

Closes #70

@ferranbt ferranbt requested review from SozinM and avalonche as code owners May 27, 2025 10:32

/// flashblock block time in milliseconds
#[arg(
long = "rollup.flashblock-block-time",
Copy link
Contributor Author

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.

network_port: Option<u16>,
builder_private_key: Option<String>,
flashblocks_ws_url: Option<String>,
flashblocks_port: Option<u16>,
Copy link
Contributor Author

@ferranbt ferranbt May 27, 2025

Choose a reason for hiding this comment

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


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");
Copy link
Contributor

Choose a reason for hiding this comment

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

Wondering if we should also rename rollup.enable-flashblocks to flashblocks.enabled to be more consistent.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was worried since Base is already using this code. But I think it should be fine. We do not provide yet any API guarantees. I am going to change the one about the flashblocks block time too.

@ferranbt ferranbt merged commit ee63878 into main May 27, 2025
3 checks passed
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.

Confusing name for Flashblocks websocket address

3 participants