Skip to content

apollo_batcher_config: reduce proposer_idle_detection_delay 2000 -> 1500ms (SNIP-40)#14174

Merged
matanl-starkware merged 1 commit into
mainfrom
matanl/snip40-block-time
May 25, 2026
Merged

apollo_batcher_config: reduce proposer_idle_detection_delay 2000 -> 1500ms (SNIP-40)#14174
matanl-starkware merged 1 commit into
mainfrom
matanl/snip40-block-time

Conversation

@matanl-starkware
Copy link
Copy Markdown
Collaborator

Per SNIP-40 "More Frequent Blocks", reduce the batcher's mempool idle-detection
delay from 2.0s to 1.5s. Block cadence is driven by this delay, so this changes
the typical block execution slot from ~2s to ~1.5s.

Spec: https://community.starknet.io/t/snip-40-more-frequent-blocks/116203

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

…500ms (SNIP-40)

Per SNIP-40 "More Frequent Blocks", reduce the batcher's mempool idle-detection
delay from 2.0s to 1.5s. Block cadence is driven by this delay, so this changes
the typical block execution slot from ~2s to ~1.5s.

Spec: https://community.starknet.io/t/snip-40-more-frequent-blocks/116203

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@reviewable-StarkWare
Copy link
Copy Markdown

This change is Reviewable

@cursor
Copy link
Copy Markdown

cursor Bot commented May 24, 2026

PR Summary

Medium Risk
Changes live block-proposal timing and network block cadence; low code complexity but operational impact on consensus and batcher behavior.

Overview
Implements SNIP-40 by lowering the batcher proposer_idle_detection_delay_millis from 2000 to 1500 everywhere it is defined.

The default in BatcherDynamicConfig, the deployment batcher_config.json, and config_schema.json are updated so that, during block proposal, the proposer can treat the mempool as idle and close the block sooner when no transactions are executing—shortening the typical block slot from ~2s toward ~1.5s.

Reviewed by Cursor Bugbot for commit ea07292. Bugbot is set up for automated code reviews on this repo. Configure here.

Copy link
Copy Markdown
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

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

@dorimedini-starkware reviewed 3 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on matanl-starkware).

@matanl-starkware matanl-starkware added this pull request to the merge queue May 25, 2026
Merged via the queue into main with commit 1b941fe May 25, 2026
27 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators May 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants