mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: add fs-util::open (#12911)
This commit is contained in:
@ -11,7 +11,7 @@ use reth_provider::{
|
||||
BlockNumReader, DatabaseProviderFactory, StaticFileProviderFactory, StaticFileWriter,
|
||||
};
|
||||
|
||||
use std::{fs::File, io::BufReader, path::PathBuf, str::FromStr};
|
||||
use std::{io::BufReader, path::PathBuf, str::FromStr};
|
||||
use tracing::info;
|
||||
|
||||
pub mod without_evm;
|
||||
@ -115,8 +115,7 @@ impl<C: ChainSpecParser<ChainSpec: EthChainSpec + EthereumHardforks>> InitStateC
|
||||
|
||||
info!(target: "reth::cli", "Initiating state dump");
|
||||
|
||||
let file = File::open(self.state)?;
|
||||
let reader = BufReader::new(file);
|
||||
let reader = BufReader::new(reth_fs_util::open(self.state)?);
|
||||
|
||||
let hash = init_from_state_dump(reader, &provider_rw, config.stages.etl)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user