Skip to content

Add option to config time to inclusion bucket size#498

Merged
zeroXbrock merged 4 commits intoflashbots:mainfrom
gligneul:time-to-inclusion-buckets
Mar 27, 2026
Merged

Add option to config time to inclusion bucket size#498
zeroXbrock merged 4 commits intoflashbots:mainfrom
gligneul:time-to-inclusion-buckets

Conversation

@gligneul
Copy link
Copy Markdown
Contributor

Motivation

The time-to-inclusion chart in the generated reports previously used a fixed 1-second bucket size, which was too small for fast chains.

Solution

This adds a --time-to-inclusion-bucket <MS> flag to the report and campaign subcommands to control the bucket size in milliseconds. Set the default to 1000 ms (1 second) to keep backward compatibility.

PR Checklist

  • Added Tests
  • Added Documentation
  • Ran cargo +nightly clippy --workspace --lib --examples --tests --benches --all-features --locked --fix
  • Ran cargo fmt --all
  • Note breaking changes in PR description, if applicable
  • update changelogs
    • Update CHANGELOG.md in each affected crate
    • add a high-level description in the root changelog

Close #497

@gligneul gligneul requested a review from zeroXbrock as a code owner March 26, 2026 19:15
@gligneul gligneul force-pushed the time-to-inclusion-buckets branch from d51ad9f to 0bf9712 Compare March 26, 2026 19:16
The time-to-inclusion chart in the generated reports previously used a
fixed 1-second bucket size. This adds a `--time-to-inclusion-bucket
<MS>` flag to the report and campaign subcommands to control the bucket
size in milliseconds. Set the default to 1000 ms (1 second) to keep
backward compatibility.

Close flashbots#497
Copy link
Copy Markdown
Member

@zeroXbrock zeroXbrock left a comment

Choose a reason for hiding this comment

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

some code suggestions applied in this PR: gligneul#1

Just future-prepping to prevent param overload. Code changes look good! Thank you 🙏

@gligneul gligneul requested a review from zeroXbrock March 27, 2026 13:29
Copy link
Copy Markdown
Member

@zeroXbrock zeroXbrock left a comment

Choose a reason for hiding this comment

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

nice work, thanks @gligneul !!

@zeroXbrock zeroXbrock merged commit 30923f7 into flashbots:main Mar 27, 2026
7 checks passed
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.

Feature Request: Configurable time to inclusion buckets

2 participants