-
Notifications
You must be signed in to change notification settings - Fork 48
First flashblocks integration test #337
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
.with_log_consumer(builder_log_consumer) | ||
.start() | ||
.await?; | ||
let builder = if self.flashblocks { |
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.
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?; |
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.
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> { |
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.
It does, internally the function checks whether the block was built by the builder
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.
yes but it doesn't distinguish between whether its a flashblock or a fallback builder block from get_payload.
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.
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?
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.