Skip to content

refactor: extract FlashblocksState::next_after_seal#477

Merged
julio4 merged 1 commit intomainfrom
feat/flashblocks-state-next-after-seal
Apr 24, 2026
Merged

refactor: extract FlashblocksState::next_after_seal#477
julio4 merged 1 commit intomainfrom
feat/flashblocks-state-next-after-seal

Conversation

@julio4
Copy link
Copy Markdown
Member

@julio4 julio4 commented Apr 24, 2026

Summary

  • Moves the inline block that advances gas/DA/DA-footprint budgets between flashblocks into a FlashblocksState::next_after_seal method.
  • Drops gas_per_batch() / da_per_batch() / da_footprint_per_batch()
  • unit tests: index increment, gas/DA/DA-footprint advancement, consumed-DA carry-over, None DA passthrough, and config preservation.

@julio4 julio4 force-pushed the feat/flashblocks-state-next-after-seal branch from 948e789 to 904b4b7 Compare April 24, 2026 08:46
Move the inline block that advances gas/DA/DA-footprint budgets between
flashblocks into a named method on `FlashblocksState`. Takes the
post-build residual `target_da_for_batch` / `target_da_footprint_for_batch`
as args to preserve exact semantics (residual + per-batch limit carry-over
for DA; pre-build + per-batch for gas). Drops unused per-batch getters
whose last callers were the inline block.
@julio4 julio4 force-pushed the feat/flashblocks-state-next-after-seal branch from 904b4b7 to 28ebf73 Compare April 24, 2026 08:56
@julio4 julio4 merged commit 41c8024 into main Apr 24, 2026
4 checks passed
@julio4 julio4 deleted the feat/flashblocks-state-next-after-seal branch April 24, 2026 17:31
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