Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion crates/consensus/src/block/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,6 @@ impl<'a> arbitrary::Arbitrary<'a> for Header {
}

/// Trait for extracting specific Ethereum block data from a header
#[auto_impl::auto_impl(&, Arc)]
pub trait BlockHeader {
/// Extracts essential information into one container type.
fn header_info(&self) -> HeaderInfo {
Expand Down
5 changes: 0 additions & 5 deletions crates/consensus/src/receipt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ pub(crate) mod serde_bincode_compat {

/// Receipt is the result of a transaction execution.
#[doc(alias = "TransactionReceipt")]
#[auto_impl::auto_impl(&, Arc)]
pub trait TxReceipt: Clone + fmt::Debug + PartialEq + Eq + Send + Sync {
/// The associated log type.
type Log;
Expand Down Expand Up @@ -65,20 +64,17 @@ pub trait TxReceipt: Clone + fmt::Debug + PartialEq + Eq + Send + Sync {

/// Returns [`ReceiptWithBloom`] with the computed bloom filter [`Self::bloom`] and a reference
/// to the receipt.
#[auto_impl(keep_default_for(&, Arc))]
fn with_bloom_ref(&self) -> ReceiptWithBloom<&Self> {
ReceiptWithBloom { logs_bloom: self.bloom(), receipt: self }
}

/// Consumes the type and converts it into [`ReceiptWithBloom`] with the computed bloom filter
/// [`Self::bloom`] and the receipt.
#[auto_impl(keep_default_for(&, Arc))]
fn into_with_bloom(self) -> ReceiptWithBloom<Self> {
ReceiptWithBloom { logs_bloom: self.bloom(), receipt: self }
}

/// Consumes the type and converts it into [`ReceiptWithBloom`] with the given bloom filter.
#[auto_impl(keep_default_for(&, Arc))]
fn into_with_bloom_unchecked(self, logs_bloom: Bloom) -> ReceiptWithBloom<Self> {
ReceiptWithBloom { logs_bloom, receipt: self }
}
Expand All @@ -90,7 +86,6 @@ pub trait TxReceipt: Clone + fmt::Debug + PartialEq + Eq + Send + Sync {
fn logs(&self) -> &[Self::Log];

/// Consumes the type and returns the logs emitted by this transaction as a vector.
#[auto_impl(keep_default_for(&, Arc))]
fn into_logs(self) -> Vec<Self::Log>
where
Self::Log: Clone,
Expand Down
1 change: 0 additions & 1 deletion crates/consensus/src/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ use alloy_eips::Typed2718;
/// We call these transactions "dynamic fee transactions".
/// We call non dynamic fee transactions(EIP-155, EIP-2930) "legacy fee transactions".
#[doc(alias = "Tx")]
#[auto_impl::auto_impl(&, Arc)]
pub trait Transaction: Typed2718 + fmt::Debug + any::Any + Send + Sync + 'static {
/// Get `chain_id`.
fn chain_id(&self) -> Option<ChainId>;
Expand Down
1 change: 0 additions & 1 deletion crates/consensus/src/transaction/rlp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use alloy_rlp::{Buf, BufMut, Decodable, Encodable, Header};
/// Helper trait for managing RLP encoding of transactions inside 2718
#[doc(hidden)]
#[doc(alias = "RlpEncodableTx", alias = "RlpTxEncoding")]
#[auto_impl::auto_impl(&, Arc)]
pub trait RlpEcdsaEncodableTx: Sized + Typed2718 {
/// Calculate the encoded length of the transaction's fields, without a RLP
/// header.
Expand Down