Skip to content

Conversation

@mirgee
Copy link
Contributor

@mirgee mirgee commented Oct 31, 2025

Adds the following BAL-related CLI options:

  • --Xbal-optimization-enabled (default: true) - allows enabling or disabling BAL-based state root pre-computation (and possibly other optimizations in the future)
  • --Xbal-trust-state-root (default: false) - defines whether the state root computed from BALs should be trusted; if not, it will be re-computed synchronously and the results compared (will be added in a followup PR with proper implementation)
  • --Xbal-lenient-on-mismatch (default: true) - defines whether to only log an error message or invalidate the block on mismatch between state root computed based on BAL and synchronously
  • --Xbal-state-root-timeout (default: 1000) - the duration for which to wait for the BAL-based state root computation future to complete in milliseconds

Renames --Xapi-block-access-list-enabled to --Xbal-api-enabled.

Merging this PR will easily allow adding the CLI option to enable logging constructed and block's BALs on mismatch as mentioned in #9402 .

Followup PRs will add --Xbal-trust-state-root and --Xbal-log-bals-on-mismatch (or similar).

Currently --Xbal-optimization-enabled doesn't really enable any performance optimizations, however it's probably better to minimize changes to CLI flags than choosing a temporary name which is fitting better at the moment.

@mirgee mirgee force-pushed the bal-config branch 5 times, most recently from e69898b to bbf87c6 Compare November 3, 2025 09:33
@mirgee mirgee marked this pull request as draft November 3, 2025 18:07
@mirgee mirgee force-pushed the bal-config branch 2 times, most recently from 2f9b9d0 to 9cb2557 Compare November 4, 2025 18:18
@mirgee mirgee marked this pull request as ready for review November 6, 2025 13:47
Signed-off-by: Miroslav Kovar <[email protected]>
Signed-off-by: Miroslav Kovar <[email protected]>
@mirgee mirgee requested a review from matkt November 7, 2025 10:08
matkt
matkt previously approved these changes Nov 7, 2025
Copy link
Contributor

@matkt matkt left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Miroslav Kovar <[email protected]>
@mirgee mirgee requested a review from matkt November 7, 2025 10:43
@matkt matkt enabled auto-merge (squash) November 7, 2025 11:03
Copy link
Contributor

@matkt matkt left a comment

Choose a reason for hiding this comment

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

LGTM

@matkt matkt merged commit 7320f3a into hyperledger:main Nov 7, 2025
46 checks passed
@mirgee mirgee deleted the bal-config branch November 7, 2025 11:29
jflo pushed a commit to jflo/besu that referenced this pull request Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants