reth_engine_primitives

Trait InvalidBlockHook

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

An invalid block hook.

Required Methods§

Source

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

Invoked when an invalid block is encountered.

Implementors§

Source§

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