mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(sdk): add adapters for header and body to NodeTypes (#12723)
This commit is contained in:
@ -232,3 +232,9 @@ where
|
||||
{
|
||||
type Engine = E;
|
||||
}
|
||||
|
||||
/// Helper adapter type for accessing [`NodePrimitives::BlockHeader`] on [`NodeTypes`].
|
||||
pub type HeaderTy<N> = <<N as NodeTypes>::Primitives as NodePrimitives>::BlockHeader;
|
||||
|
||||
/// Helper adapter type for accessing [`NodePrimitives::BlockBody`] on [`NodeTypes`].
|
||||
pub type BodyTy<N> = <<N as NodeTypes>::Primitives as NodePrimitives>::BlockBody;
|
||||
|
||||
Reference in New Issue
Block a user