Skip to content

Commit 1b941fe

Browse files
apollo_batcher_config: reduce proposer_idle_detection_delay 2000 -> 1500ms (SNIP-40) (#14174)
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>
1 parent 53c993d commit 1b941fe

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

crates/apollo_batcher_config/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ impl Default for BatcherDynamicConfig {
340340
storage_reader_server_dynamic_config: StorageReaderServerDynamicConfig::default(),
341341
n_concurrent_txs: 100,
342342
tx_polling_interval_millis: 10,
343-
proposer_idle_detection_delay_millis: Duration::from_millis(2000),
343+
proposer_idle_detection_delay_millis: Duration::from_millis(1500),
344344
}
345345
}
346346
}

crates/apollo_deployments/resources/app_configs/batcher_config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"batcher_config.dynamic_config.n_concurrent_txs": 100,
3-
"batcher_config.dynamic_config.proposer_idle_detection_delay_millis": 2000,
3+
"batcher_config.dynamic_config.proposer_idle_detection_delay_millis": 1500,
44
"batcher_config.dynamic_config.storage_reader_server_dynamic_config.enable": false,
55
"batcher_config.dynamic_config.tx_polling_interval_millis": 200,
66
"batcher_config.static_config.block_builder_config.bouncer_config.builtin_weights.gas_costs.blake": 3334,

crates/apollo_node/resources/config_schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"batcher_config.dynamic_config.proposer_idle_detection_delay_millis": {
5353
"description": "Minimum time (in milliseconds) that must pass since block creation started before checking for idle state. If this delay has passed AND no transactions are currently being executed, the proposer will finish building the current block.",
5454
"privacy": "Public",
55-
"value": 2000
55+
"value": 1500
5656
},
5757
"batcher_config.dynamic_config.storage_reader_server_dynamic_config.enable": {
5858
"description": "Whether to enable the storage reader HTTP server.",

0 commit comments

Comments
 (0)