mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(engine): invalid block hooks crate (#10629)
Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com>
This commit is contained in:
17
crates/engine/invalid-block-hooks/Cargo.toml
Normal file
17
crates/engine/invalid-block-hooks/Cargo.toml
Normal 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
|
||||
5
crates/engine/invalid-block-hooks/src/lib.rs
Normal file
5
crates/engine/invalid-block-hooks/src/lib.rs
Normal file
@ -0,0 +1,5 @@
|
||||
//! Invalid block hook implementations.
|
||||
|
||||
mod witness;
|
||||
|
||||
pub use witness::witness;
|
||||
13
crates/engine/invalid-block-hooks/src/witness.rs
Normal file
13
crates/engine/invalid-block-hooks/src/witness.rs
Normal 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")
|
||||
}
|
||||
Reference in New Issue
Block a user