reth_node_builder

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.

Implementations on Foreign Types§

§

impl InvalidBlockHook for InvalidBlockHooks

§

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

§

impl InvalidBlockHook for NoopInvalidBlockHook

§

fn on_invalid_block( &self, _parent_header: &SealedHeader, _block: &SealedBlockWithSenders, _output: &BlockExecutionOutput<Receipt>, _trie_updates: Option<(&TrieUpdates, FixedBytes<32>)>, )

§

impl<P, EvmConfig> InvalidBlockHook for InvalidBlockWitnessHook<P, EvmConfig>
where P: StateProviderFactory + ChainSpecProvider + Send + Sync + 'static, <P as ChainSpecProvider>::ChainSpec: EthChainSpec + EthereumHardforks, EvmConfig: ConfigureEvm<Header = Header>,

§

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

Implementors§

Source§

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