diff --git a/crates/engine/service/src/service.rs b/crates/engine/service/src/service.rs index e3f3aeeeca01..56e674fdf693 100644 --- a/crates/engine/service/src/service.rs +++ b/crates/engine/service/src/service.rs @@ -198,7 +198,7 @@ mod tests { pruner, PayloadBuilderHandle::new(tx), TreeConfig::default(), - Box::new(NoopInvalidBlockHook), + Box::new(NoopInvalidBlockHook::default()), ); } } diff --git a/crates/engine/tree/src/tree/invalid_block_hook.rs b/crates/engine/tree/src/tree/invalid_block_hook.rs index 8e69026df1cf..1c9e64914448 100644 --- a/crates/engine/tree/src/tree/invalid_block_hook.rs +++ b/crates/engine/tree/src/tree/invalid_block_hook.rs @@ -36,7 +36,8 @@ where } /// A no-op [`InvalidBlockHook`] that does nothing. -#[derive(Debug)] +#[derive(Debug, Default)] +#[non_exhaustive] pub struct NoopInvalidBlockHook; impl InvalidBlockHook for NoopInvalidBlockHook { diff --git a/crates/node/builder/src/launch/engine.rs b/crates/node/builder/src/launch/engine.rs index 6a2ae8878543..23a6d352a123 100644 --- a/crates/node/builder/src/launch/engine.rs +++ b/crates/node/builder/src/launch/engine.rs @@ -207,7 +207,7 @@ where warn!(target: "reth::cli", ?hook_type, "Invalid block hooks are not implemented yet! The `debug.invalid-block-hook` flag will do nothing for now."); } - let invalid_block_hook = Box::new(NoopInvalidBlockHook); + let invalid_block_hook = Box::new(NoopInvalidBlockHook::default()); // Configure the consensus engine let mut eth_service = EngineService::new(