mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: rm validate delegate (#13190)
This commit is contained in:
@ -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`]
|
||||
/// components.
|
||||
pub fn into_parts(self) -> (TransactionSigned, BlobTransactionSidecar) {
|
||||
|
||||
@ -198,7 +198,7 @@ where
|
||||
// Verify that the given blob data, commitments, and proofs are all valid for
|
||||
// this transaction.
|
||||
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()))
|
||||
})?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user