reth_optimism_payload_builder/
error.rs

1//! Error type
2
3/// Optimism specific payload building errors.
4#[derive(Debug, thiserror::Error)]
5pub enum OpPayloadBuilderError {
6    /// Thrown when a transaction fails to convert to a
7    /// [`alloy_consensus::transaction::Recovered`].
8    #[error("failed to convert deposit transaction to RecoveredTx")]
9    TransactionEcRecoverFailed,
10    /// Thrown when the L1 block info could not be parsed from the calldata of the
11    /// first transaction supplied in the payload attributes.
12    #[error("failed to parse L1 block info from L1 info tx calldata")]
13    L1BlockInfoParseFailed,
14    /// Thrown when a database account could not be loaded.
15    #[error("failed to load account {0}")]
16    AccountLoadFailed(alloy_primitives::Address),
17    /// Thrown when force deploy of create2deployer code fails.
18    #[error("failed to force create2deployer account code")]
19    ForceCreate2DeployerFail,
20    /// Thrown when a blob transaction is included in a sequencer's block.
21    #[error("blob transaction included in sequencer block")]
22    BlobTransactionRejected,
23}