reth_engine_tree::tree

Trait InvalidBlockHook

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

An invalid block hook.

Required Methods§

Source

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

Invoked when an invalid block is encountered.

Implementors§

Source§

impl InvalidBlockHook for InvalidBlockHooks

Source§

impl InvalidBlockHook for NoopInvalidBlockHook

Source§

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