mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: EthApi traits abstraction (#13170)
This commit is contained in:
@ -4,6 +4,7 @@ pub mod body;
|
||||
pub mod header;
|
||||
|
||||
use alloc::fmt;
|
||||
use alloy_rlp::{Decodable, Encodable};
|
||||
|
||||
use crate::{
|
||||
BlockBody, BlockHeader, FullBlockBody, FullBlockHeader, InMemorySize, MaybeArbitrary,
|
||||
@ -39,6 +40,8 @@ pub trait Block:
|
||||
+ InMemorySize
|
||||
+ MaybeSerde
|
||||
+ MaybeArbitrary
|
||||
+ Encodable
|
||||
+ Decodable
|
||||
{
|
||||
/// Header part of the block.
|
||||
type Header: BlockHeader;
|
||||
|
||||
Reference in New Issue
Block a user