From 08cd1cbda612929f1a3f3ddaee353abaf41cbe46 Mon Sep 17 00:00:00 2001 From: joshieDo <93316087+joshieDo@users.noreply.github.com> Date: Tue, 27 Jan 2026 14:01:32 +0000 Subject: [PATCH] fix(static-files): apply minimal blocks per file to all segments (#21479) Co-authored-by: Claude Sonnet 4.5 --- crates/node/core/src/args/static_files.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/node/core/src/args/static_files.rs b/crates/node/core/src/args/static_files.rs index ac710d0c9e..18aa1bc006 100644 --- a/crates/node/core/src/args/static_files.rs +++ b/crates/node/core/src/args/static_files.rs @@ -90,7 +90,7 @@ impl StaticFilesArgs { /// args. /// /// If `minimal` is true, uses [`MINIMAL_BLOCKS_PER_FILE`] blocks per file as the default for - /// headers, transactions, and receipts segments. + /// all segments. pub fn merge_with_config(&self, config: StaticFilesConfig, minimal: bool) -> StaticFilesConfig { let minimal_blocks_per_file = minimal.then_some(MINIMAL_BLOCKS_PER_FILE); StaticFilesConfig { @@ -109,12 +109,15 @@ impl StaticFilesArgs { .or(config.blocks_per_file.receipts), transaction_senders: self .blocks_per_file_transaction_senders + .or(minimal_blocks_per_file) .or(config.blocks_per_file.transaction_senders), account_change_sets: self .blocks_per_file_account_change_sets + .or(minimal_blocks_per_file) .or(config.blocks_per_file.account_change_sets), storage_change_sets: self .blocks_per_file_storage_change_sets + .or(minimal_blocks_per_file) .or(config.blocks_per_file.storage_change_sets), }, }