feat(engine): invalid block hooks crate (#10629)

Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com>
This commit is contained in:
Alexey Shekhirin
2024-09-03 16:02:18 +01:00
committed by GitHub
parent 6b509ddb1c
commit 9d46b06420
12 changed files with 137 additions and 31 deletions

View File

@ -0,0 +1,17 @@
[package]
name = "reth-invalid-block-hooks"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
[lints]
workspace = true
[dependencies]
# reth
reth-primitives.workspace = true
reth-provider.workspace = true
reth-trie.workspace = true

View File

@ -0,0 +1,5 @@
//! Invalid block hook implementations.
mod witness;
pub use witness::witness;

View File

@ -0,0 +1,13 @@
use reth_primitives::{Receipt, SealedBlockWithSenders, SealedHeader, B256};
use reth_provider::BlockExecutionOutput;
use reth_trie::updates::TrieUpdates;
/// Generates a witness for the given block and saves it to a file.
pub fn witness(
_block: &SealedBlockWithSenders,
_header: &SealedHeader,
_output: &BlockExecutionOutput<Receipt>,
_trie_updates: Option<(&TrieUpdates, B256)>,
) {
unimplemented!("witness generation is not supported")
}