reth::builder

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.

Implementations on Foreign Types§

Source§

impl<N> InvalidBlockHook<N> for InvalidBlockHooks<N>
where N: NodePrimitives,

Source§

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>)>, )

Source§

impl<N> InvalidBlockHook<N> for NoopInvalidBlockHook
where N: NodePrimitives,

Source§

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>)>, )

Source§

impl<P, EvmConfig, N> InvalidBlockHook<N> for InvalidBlockWitnessHook<P, EvmConfig>

Source§

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>)>, )

Implementors§