mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(sdk): Add NodePrimitives::BlockHeader and NodePrimitives::BlockBody (#12647)
This commit is contained in:
@ -79,17 +79,10 @@ pub mod serde_bincode_compat {
|
||||
#[derive(Debug, Clone, Default, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
|
||||
pub struct EthPrimitives;
|
||||
|
||||
#[cfg(feature = "reth-codec")]
|
||||
impl reth_primitives_traits::FullNodePrimitives for EthPrimitives {
|
||||
type Block = crate::Block;
|
||||
type SignedTx = crate::TransactionSigned;
|
||||
type TxType = crate::TxType;
|
||||
type Receipt = crate::Receipt;
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "reth-codec"))]
|
||||
impl NodePrimitives for EthPrimitives {
|
||||
type Block = crate::Block;
|
||||
type BlockHeader = alloy_consensus::Header;
|
||||
type BlockBody = crate::BlockBody;
|
||||
type SignedTx = crate::TransactionSigned;
|
||||
type TxType = crate::TxType;
|
||||
type Receipt = crate::Receipt;
|
||||
|
||||
Reference in New Issue
Block a user