reth_node_api

Trait InvalidBlockHook

pub trait InvalidBlockHook<N>: Send + Sync
where N: NodePrimitives,
{ // Required method fn on_invalid_block( &self, parent_header: &SealedHeader<<N as NodePrimitives>::BlockHeader>, block: &SealedBlockWithSenders<<N as NodePrimitives>::Block>, output: &BlockExecutionOutput<<N as NodePrimitives>::Receipt>, trie_updates: Option<(&TrieUpdates, FixedBytes<32>)>, ); }
Expand description

An invalid block hook.

Required Methods§

fn on_invalid_block( &self, parent_header: &SealedHeader<<N as NodePrimitives>::BlockHeader>, block: &SealedBlockWithSenders<<N as NodePrimitives>::Block>, output: &BlockExecutionOutput<<N as NodePrimitives>::Receipt>, trie_updates: Option<(&TrieUpdates, FixedBytes<32>)>, )

Invoked when an invalid block is encountered.

Implementors§

§

impl<F, N> InvalidBlockHook<N> for F
where N: NodePrimitives, F: Fn(&SealedHeader<<N as NodePrimitives>::BlockHeader>, &SealedBlockWithSenders<<N as NodePrimitives>::Block>, &BlockExecutionOutput<<N as NodePrimitives>::Receipt>, Option<(&TrieUpdates, FixedBytes<32>)>) + Send + Sync,