Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add config for block selection #134

wants to merge 1 commit into from

Conversation

avalonche
Copy link
Collaborator

@avalonche avalonche commented Mar 14, 2025

Copy link

vercel bot commented Mar 14, 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 Mar 14, 2025 0:33am

.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 {
Copy link
Collaborator

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,
Copy link
Collaborator

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,
Copy link
Collaborator

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.

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