mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore: remove unused PreCancunBlock beacon error (#9880)
This commit is contained in:
@ -87,9 +87,6 @@ pub enum BeaconOnNewPayloadError {
|
|||||||
/// Thrown when the engine task is unavailable/stopped.
|
/// Thrown when the engine task is unavailable/stopped.
|
||||||
#[error("beacon consensus engine task stopped")]
|
#[error("beacon consensus engine task stopped")]
|
||||||
EngineUnavailable,
|
EngineUnavailable,
|
||||||
/// Thrown when a block has blob transactions, but is not after the Cancun fork.
|
|
||||||
#[error("block has blob transactions, but is not after the Cancun fork")]
|
|
||||||
PreCancunBlockWithBlobTransactions,
|
|
||||||
/// An internal error occurred, not necessarily related to the payload.
|
/// An internal error occurred, not necessarily related to the payload.
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
Internal(Box<dyn std::error::Error + Send + Sync>),
|
Internal(Box<dyn std::error::Error + Send + Sync>),
|
||||||
|
|||||||
@ -173,30 +173,10 @@ impl From<EngineApiError> for jsonrpsee_types::error::ErrorObject<'static> {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
EngineApiError::NewPayload(ref err) => match err {
|
|
||||||
BeaconOnNewPayloadError::Internal(_) => jsonrpsee_types::error::ErrorObject::owned(
|
|
||||||
INTERNAL_ERROR_CODE,
|
|
||||||
SERVER_ERROR_MSG,
|
|
||||||
Some(ErrorData::new(error)),
|
|
||||||
),
|
|
||||||
BeaconOnNewPayloadError::PreCancunBlockWithBlobTransactions => {
|
|
||||||
jsonrpsee_types::error::ErrorObject::owned(
|
|
||||||
INVALID_PARAMS_CODE,
|
|
||||||
INVALID_PARAMS_MSG,
|
|
||||||
Some(ErrorData::new(error)),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
BeaconOnNewPayloadError::EngineUnavailable => {
|
|
||||||
jsonrpsee_types::error::ErrorObject::owned(
|
|
||||||
INTERNAL_ERROR_CODE,
|
|
||||||
SERVER_ERROR_MSG,
|
|
||||||
Some(ErrorData::new(error)),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// Any other server error
|
// Any other server error
|
||||||
EngineApiError::TerminalTD { .. } |
|
EngineApiError::TerminalTD { .. } |
|
||||||
EngineApiError::TerminalBlockHash { .. } |
|
EngineApiError::TerminalBlockHash { .. } |
|
||||||
|
EngineApiError::NewPayload(_) |
|
||||||
EngineApiError::Internal(_) |
|
EngineApiError::Internal(_) |
|
||||||
EngineApiError::GetPayloadError(_) => jsonrpsee_types::error::ErrorObject::owned(
|
EngineApiError::GetPayloadError(_) => jsonrpsee_types::error::ErrorObject::owned(
|
||||||
INTERNAL_ERROR_CODE,
|
INTERNAL_ERROR_CODE,
|
||||||
|
|||||||
Reference in New Issue
Block a user