-
Notifications
You must be signed in to change notification settings - Fork 35
Add config for block selection #134
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
|
af940b5
to
8a574cc
Compare
8a574cc
to
49e6731
Compare
.payload_inner | ||
.gas_used; | ||
let l2_gas_used = l2.0.execution_payload.payload_inner.payload_inner.gas_used; | ||
if builder_gas_used >= l2_gas_used * self.l2_boost_factor { |
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're multiplying by an integer here, not a float, so I think we have incorrect behaviour.
|
||
/// percentage multipler to the local payload gas used for choosing payloads | ||
#[arg(long, env, default_value = "0")] | ||
l2_boost_factor: u64, |
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'm not sure l2_boost_factor is a very descriptive name. Maybe we can go with something like --builder-gas-requirement=0.95
and parse a float here instead?
@@ -133,6 +134,7 @@ impl RollupBoostServer { | |||
boost_sync: bool, | |||
metrics: Option<Arc<ServerMetrics>>, | |||
initial_execution_mode: ExecutionMode, | |||
l2_boost_factor: u64, |
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 probably want some input validation.
#133