perf: use fixed-map for StaticFileSegment maps (#21001)

Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
DaniPopes
2026-01-14 00:52:54 +00:00
committed by GitHub
parent a73e73adef
commit 54735ce0f4
11 changed files with 122 additions and 87 deletions

View File

@@ -483,7 +483,7 @@ where
let static_file_provider =
StaticFileProviderBuilder::read_write(self.data_dir().static_files())
.with_metrics()
.with_blocks_per_file_for_segments(static_files_config.as_blocks_per_file_map())
.with_blocks_per_file_for_segments(&static_files_config.as_blocks_per_file_map())
.with_genesis_block_number(self.chain_spec().genesis().number.unwrap_or_default())
.build()?;
@@ -946,7 +946,7 @@ where
error!(
"Op-mainnet has been launched without importing the pre-Bedrock state. The chain can't progress without this. See also https://reth.rs/run/sync-op-mainnet.html?minimal-bootstrap-recommended"
);
return Err(ProviderError::BestBlockNotFound)
return Err(ProviderError::BestBlockNotFound);
}
}