Repository: paradigmxyz/reth (language: rust)

Issue:
Remove unused Senderrecovery variant
### Describe the feature

this is now unused after https://github.com/paradigmxyz/reth/pull/14625 

https://github.com/paradigmxyz/reth/blob/86e8a2a245490a1503c3c05c246f63f3d48e0175/crates/engine/tree/src/tree/error.rs#L179-L181

and we can remove this entirely

## TODO
* remove variant and https://github.com/paradigmxyz/reth/blob/86e8a2a245490a1503c3c05c246f63f3d48e0175/crates/engine/tree/src/tree/error.rs#L116-L118


FYI @programskillforverification

### Additional context

_No response_


Discussion / hints:

Fix patch:
diff --git a/crates/engine/tree/src/tree/error.rs b/crates/engine/tree/src/tree/error.rs
index 6689568905f2..f5edc3b860f9 100644
--- a/crates/engine/tree/src/tree/error.rs
+++ b/crates/engine/tree/src/tree/error.rs
@@ -73,11 +73,6 @@ impl<B: Block> InsertBlockError<B> {
         Self::new(block, InsertBlockErrorKind::Consensus(error))
     }
 
-    /// Create a new `InsertInvalidBlockError` from a consensus error
-    pub fn sender_recovery_error(block: SealedBlock<B>) -> Self {
-        Self::new(block, InsertBlockErrorKind::SenderRecovery)
-    }
-
     /// Consumes the error and returns the block that resulted in the error
     #[inline]
     pub fn into_block(self) -> SealedBlock<B> {
@@ -113,9 +108,6 @@ impl<B: Block> std::fmt::Debug for InsertBlockError<B> {
 /// All error variants possible when inserting a block
 #[derive(Debug, thiserror::Error)]
 pub enum InsertBlockErrorKind {
-    /// Failed to recover senders for the block
-    #[error("failed to recover senders for block")]
-    SenderRecovery,
     /// Block violated consensus rules.
     #[error(transparent)]
     Consensus(#[from] ConsensusError),
@@ -142,7 +134,6 @@ impl InsertBlockErrorKind {
         self,
     ) -> Result<InsertBlockValidationError, InsertBlockFatalError> {
         match self {
-            Self::SenderRecovery => Ok(InsertBlockValidationError::SenderRecovery),
             Self::Consensus(err) => Ok(InsertBlockValidationError::Consensus(err)),
             // other execution errors that are considered internal errors
             Self::Execution(err) => {
@@ -176,9 +167,6 @@ pub enum InsertBlockFatalError {
 /// Error variants that are caused by invalid blocks
 #[derive(Debug, thiserror::Error)]
 pub enum InsertBlockValidationError {
-    /// Failed to recover senders for the block
-    #[error("failed to recover senders for block")]
-    SenderRecovery,
     /// Block violated consensus rules.
     #[error(transparent)]
     Consensus(#[from] ConsensusError),


Test patch: