chore: rm unused error variants (#14183)

This commit is contained in:
Matthias Seitz
2025-02-04 00:29:29 +01:00
committed by GitHub
parent 556c79f787
commit af3eb83c90
6 changed files with 5 additions and 44 deletions

View File

@ -15,7 +15,6 @@ use reth_cli_commands::common::{AccessRights, CliNodeTypes, Environment, Environ
use reth_cli_runner::CliContext;
use reth_cli_util::get_secret_key;
use reth_config::Config;
use reth_errors::BlockValidationError;
use reth_evm::execute::{BlockExecutorProvider, Executor};
use reth_execution_types::ExecutionOutcome;
use reth_network::{BlockDownloaderProvider, NetworkHandle};
@ -165,9 +164,7 @@ impl<C: ChainSpecParser<ChainSpec = ChainSpec>> Command<C> {
let provider_rw = provider_factory.database_provider_rw()?;
// Insert block, state and hashes
provider_rw.insert_historical_block(
block.clone().try_recover().map_err(|_| BlockValidationError::SenderRecoveryError)?,
)?;
provider_rw.insert_historical_block(block.clone().try_recover()?)?;
provider_rw.write_state(
&execution_outcome,
OriginalValuesKnown::No,