Trait DebugNode

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

    // Required method
    fn rpc_to_primitive_block(rpc_block: Self::RpcBlock) -> BlockTy<Self>;
}
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) -> BlockTy<Self>

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.

Implementors§

impl<N: FullNodeComponents<Types = Self>> DebugNode<N> for EthereumNode

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