Skip to content

fix: last block in the checkpoints gets ramaining gas limits#21669

Closed
alexghr wants to merge 1 commit into
nextfrom
ag/last-block-in-checkpoint-limits
Closed

fix: last block in the checkpoints gets ramaining gas limits#21669
alexghr wants to merge 1 commit into
nextfrom
ag/last-block-in-checkpoint-limits

Conversation

@alexghr

@alexghr alexghr commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

.

// minValidTxs is passed into the builder so it can reject the block *before* updating state.
const minValidTxs = forceCreate ? 0 : (this.config.minValidTxsPerBlock ?? minTxs);
const blockBuilderOptions: PublicProcessorLimits & { minValidTxs?: number } = {
maxTransactions: this.config.maxTxsPerBlock,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I wasn't sure if this could be safely set to undefined when isLastBlock.

@alexghr alexghr enabled auto-merge (squash) March 17, 2026 12:20
Base automatically changed from merge-train/spartan to next March 20, 2026 22:34
@alexghr

alexghr commented Apr 1, 2026

Copy link
Copy Markdown
Contributor Author

closing as it got fixed in #21692

@alexghr alexghr closed this Apr 1, 2026
auto-merge was automatically disabled April 1, 2026 12:08

Pull request was closed

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