Skip to content

Commit

Permalink
chore: dont enable serde in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Jan 29, 2025
1 parent c92c0e2 commit d162e8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/consensus/src/block/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use alloy_rlp::{Decodable, Encodable, RlpDecodable, RlpEncodable};
///
/// See p2p block encoding reference: <https://github.com/ethereum/devp2p/blob/master/caps/eth.md#block-encoding-and-validity>
#[derive(Debug, Clone, PartialEq, Eq, derive_more::Deref)]
#[cfg_attr(any(test, feature = "serde"), derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct Block<T, H = Header> {
/// Block header.
#[deref]
Expand Down Expand Up @@ -145,7 +145,7 @@ where
///
/// Withdrawals can be optionally included at the end of the RLP encoded message.
#[derive(Debug, Clone, PartialEq, Eq, RlpEncodable, RlpDecodable)]
#[cfg_attr(any(test, feature = "serde"), derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[rlp(trailing)]
pub struct BlockBody<T, H = Header> {
/// Transactions in this block.
Expand Down

0 comments on commit d162e8d

Please sign in to comment.