Skip to content

refactor: extract reserve_builder_tx_budget helper#476

Merged
avalonche merged 1 commit intomainfrom
feat/reserve-builder-tx-budget
Apr 24, 2026
Merged

refactor: extract reserve_builder_tx_budget helper#476
avalonche merged 1 commit intomainfrom
feat/reserve-builder-tx-budget

Conversation

@julio4
Copy link
Copy Markdown
Member

@julio4 julio4 commented Apr 24, 2026

Summary

  • Moves the inline 40-line block in payload.rs that reserves gas/DA/uncompressed-bytes capacity for bottom-of-block builder txs into a reserve_builder_tx_budget function in builder_tx.rs

Move the 40-line inline block that reserves gas/DA/uncompressed-bytes
budget for bottom-of-block builder txs into a named function in
`builder_tx.rs`, alongside `BuilderTransactionCtx`. Adds unit tests
covering empty input, bottom-only filtering, saturating sub, `None` DA,
and uncompressed-limit reduction.
@avalonche avalonche merged commit 973ed86 into main Apr 24, 2026
4 checks passed
@avalonche avalonche deleted the feat/reserve-builder-tx-budget branch April 24, 2026 18:29
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.

3 participants