mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(sdk): Move reth_optimism_node::OpPrimitives into reth-optimism-primitives (#12649)
This commit is contained in:
@ -1,8 +1,16 @@
|
||||
//! Block body abstraction.
|
||||
|
||||
use crate::{InMemorySize, MaybeSerde};
|
||||
use alloc::fmt;
|
||||
|
||||
use alloy_consensus::Transaction;
|
||||
use reth_codecs::Compact;
|
||||
|
||||
use crate::{FullSignedTx, InMemorySize, MaybeSerde};
|
||||
|
||||
/// Helper trait that unifies all behaviour required by transaction to support full node operations.
|
||||
pub trait FullBlockBody: BlockBody<Transaction: FullSignedTx> + Compact {}
|
||||
|
||||
impl<T> FullBlockBody for T where T: BlockBody<Transaction: FullSignedTx> + Compact {}
|
||||
|
||||
/// Abstraction for block's body.
|
||||
#[auto_impl::auto_impl(&, Arc)]
|
||||
|
||||
@ -36,7 +36,7 @@ pub use integer_list::{IntegerList, IntegerListError};
|
||||
|
||||
pub mod block;
|
||||
pub use block::{
|
||||
body::BlockBody,
|
||||
body::{BlockBody, FullBlockBody},
|
||||
header::{BlockHeader, FullBlockHeader},
|
||||
Block, FullBlock,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user