mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: assert etl_config.file_size != 0 (#13435)
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user