From 1f7d552d63759aaa13909f786e1a2af77faa695c Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 4 Dec 2025 18:38:54 +0100 Subject: [PATCH] test: ensure invalid block hook is opt out (#20125) --- crates/node/core/src/args/debug.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crates/node/core/src/args/debug.rs b/crates/node/core/src/args/debug.rs index b5d1fb3f7d..dce3aa784e 100644 --- a/crates/node/core/src/args/debug.rs +++ b/crates/node/core/src/args/debug.rs @@ -357,6 +357,17 @@ mod tests { assert_eq!(args, default_args); } + #[test] + fn test_parse_invalid_block_args_none() { + let expected_args = DebugArgs { + invalid_block_hook: Some(InvalidBlockSelection::from(vec![])), + ..Default::default() + }; + let args = + CommandParser::::parse_from(["reth", "--debug.invalid-block-hook", ""]).args; + assert_eq!(args, expected_args); + } + #[test] fn test_parse_invalid_block_args() { let expected_args = DebugArgs {