Skip to content

Conversation

ferranbt
Copy link
Contributor

This PR introduces the initial integration test for flashblocks functionality. It is using a pinned version of the flashbots op-rbuilder since it is the only implementation available for the protocol and hence considered the default one as of now.

Copy link

vercel bot commented Jun 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
rollup-boost ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2025 1:20pm

.with_log_consumer(builder_log_consumer)
.start()
.await?;
let builder = if self.flashblocks {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not ideal to me what I wanted to keep the difference between the normal non-flashblocks cycle which can use Reth and the flashblocks protocol which must use op-rbuilder (or any flashblocks enabled builder)

.build()
.await?;
let mut block_generator = harness.block_generator().await?;
block_generator.generate_builder_blocks(10).await?;
Copy link
Collaborator

Choose a reason for hiding this comment

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

this test doesn't make assertions if flashblocks are being built - I think you can make assertions by querying rollup-boost metrics

pub async fn get_metrics(&self) -> eyre::Result<String> {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does, internally the function checks whether the block was built by the builder

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes but it doesn't distinguish between whether its a flashblock or a fallback builder block from get_payload.

Copy link
Collaborator

Choose a reason for hiding this comment

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

you could assert that source = builder and get_payload method is never called. Unless the purpose of the test is just to ensure the flashblocks flow returns any builder block?

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.

2 participants