reth_primitives/
block.rs

1use alloy_consensus::Header;
2use reth_ethereum_primitives::TransactionSigned;
3#[cfg(any(test, feature = "arbitrary"))]
4pub use reth_primitives_traits::test_utils::{generate_valid_header, valid_header_strategy};
5
6/// Ethereum full block.
7///
8/// Withdrawals can be optionally included at the end of the RLP encoded message.
9pub type Block<T = TransactionSigned, H = Header> = alloy_consensus::Block<T, H>;
10
11/// A response to `GetBlockBodies`, containing bodies if any bodies were found.
12///
13/// Withdrawals can be optionally included at the end of the RLP encoded message.
14pub type BlockBody<T = TransactionSigned, H = Header> = alloy_consensus::BlockBody<T, H>;
15
16/// Ethereum sealed block type
17pub type SealedBlock<B = Block> = reth_primitives_traits::block::SealedBlock<B>;
18
19/// Helper type for constructing the block
20#[deprecated(note = "Use `RecoveredBlock` instead")]
21pub type SealedBlockFor<B = Block> = reth_primitives_traits::block::SealedBlock<B>;
22
23/// Ethereum recovered block
24#[deprecated(note = "Use `RecoveredBlock` instead")]
25pub type BlockWithSenders<B = Block> = reth_primitives_traits::block::RecoveredBlock<B>;
26
27/// Ethereum recovered block
28#[deprecated(note = "Use `RecoveredBlock` instead")]
29pub type SealedBlockWithSenders<B = Block> = reth_primitives_traits::block::RecoveredBlock<B>;