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§
Sourcefn on_invalid_block(
&self,
parent_header: &SealedHeader<N::BlockHeader>,
block: &SealedBlockWithSenders<N::Block>,
output: &BlockExecutionOutput<N::Receipt>,
trie_updates: Option<(&TrieUpdates, B256)>,
)
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.