-
Notifications
You must be signed in to change notification settings - Fork 28
Add builder txn to Flashblocks #89
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
Conversation
/// flashblock block time in milliseconds | ||
#[arg( | ||
long = "flashblock.block-time", | ||
long = "flashblocks.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.
I am changing this flag too so that all of them have the same prefix
|
||
// If it is the last flashblocks, add the builder txn to the block if enabled | ||
if flashblock_count == self.config.flashblocks_per_block() - 1 { | ||
// TODO: Account for DA size limits |
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.
Important note. It does not account neither yet for DA limits nor for gas limits. It is still a bit of an heuristic we have to figure out how to split gas limit and DA limit in 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.
I thought we want a builder tx for every flashblock?
revert_protection: args.enable_revert_protection, | ||
block_time: Duration::from_millis(args.chain_block_time), | ||
block_time_leeway: Duration::from_millis(500), | ||
block_time_leeway: Duration::from_secs(args.extra_block_deadline_secs), |
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 was missing, the flag extra-block-deadline-secs was not being used
📝 Summary
Closes #80