Trait DebugNode

Source
pub trait DebugNode<N>: Node<N>{
    type RpcBlock: Serialize + DeserializeOwned + 'static;

    // Required method
    fn rpc_to_primitive_block(
        rpc_block: Self::RpcBlock,
    ) -> <Self::Primitives as NodePrimitives>::Block;
}
Expand description

Node extension with support for debugging utilities, see DebugNodeLauncher for more context.

Required Associated Types§

Source

type RpcBlock: Serialize + DeserializeOwned + 'static

RPC block type. Used by [DebugConsensusClient] to fetch blocks and submit them to the engine.

Required Methods§

Source

fn rpc_to_primitive_block( rpc_block: Self::RpcBlock, ) -> <Self::Primitives as NodePrimitives>::Block

Converts an RPC block to a primitive block.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

§

impl<N> DebugNode<N> for EthereumNode
where N: FullNodeComponents<Types = EthereumNode>,

§

type RpcBlock = Block

§

fn rpc_to_primitive_block( rpc_block: <EthereumNode as DebugNode<N>>::RpcBlock, ) -> Block<TransactionSigned>

Implementors§

impl<N> DebugNode<N> for OpNode
where N: FullNodeComponents<Types = Self>,