Skip to content

Commit

Permalink
chore: assert etl_config.file_size != 0 (paradigmxyz#13435)
Browse files Browse the repository at this point in the history
  • Loading branch information
keroro520 authored Dec 20, 2024
1 parent 1009607 commit 04af678
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/storage/db-common/src/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,10 @@ where
+ StateWriter
+ AsRef<Provider>,
{
if etl_config.file_size == 0 {
return Err(eyre::eyre!("ETL file size cannot be zero"))
}

let block = provider_rw.last_block_number()?;
let hash = provider_rw.block_hash(block)?.unwrap();
let expected_state_root = provider_rw
Expand Down

0 comments on commit 04af678

Please sign in to comment.