chore: rm validate delegate (#13190)

This commit is contained in:
Matthias Seitz
2024-12-06 20:57:01 +01:00
committed by GitHub
parent 4f28d6c7a4
commit 53f7297618
2 changed files with 1 additions and 12 deletions

View File

@ -39,17 +39,6 @@ impl BlobTransaction {
} }
} }
/// Verifies that the transaction's blob data, commitments, and proofs are all valid.
///
/// See also [`alloy_consensus::TxEip4844::validate_blob`]
#[cfg(feature = "c-kzg")]
pub fn validate(
&self,
proof_settings: &c_kzg::KzgSettings,
) -> Result<(), alloy_eips::eip4844::BlobTransactionValidationError> {
self.tx().validate_blob(proof_settings)
}
/// Splits the [`BlobTransaction`] into its [`TransactionSigned`] and [`BlobTransactionSidecar`] /// Splits the [`BlobTransaction`] into its [`TransactionSigned`] and [`BlobTransactionSidecar`]
/// components. /// components.
pub fn into_parts(self) -> (TransactionSigned, BlobTransactionSidecar) { pub fn into_parts(self) -> (TransactionSigned, BlobTransactionSidecar) {

View File

@ -198,7 +198,7 @@ where
// Verify that the given blob data, commitments, and proofs are all valid for // Verify that the given blob data, commitments, and proofs are all valid for
// this transaction. // this transaction.
if let PooledTransactionsElement::BlobTransaction(ref tx) = tx { if let PooledTransactionsElement::BlobTransaction(ref tx) = tx {
tx.validate(EnvKzgSettings::Default.get()).map_err(|e| { tx.tx().validate_blob(EnvKzgSettings::Default.get()).map_err(|e| {
Eth::Error::from_eth_err(EthApiError::InvalidParams(e.to_string())) Eth::Error::from_eth_err(EthApiError::InvalidParams(e.to_string()))
})?; })?;
} }