Review report

core: PR #36389

๐ŸŸ  Major

The node parameter hides the namespace (src/test/util/mining.cpp:144, head)

The node parameter hides the node namespace at this use, so node::BlockValidationStateCatcher cannot name the type and this translation unit fails to compile. Use ::node::BlockValidationStateCatcher or rename the parameter.

๐Ÿ’ก Suggestion

Include <optional> directly (src/node/block_validation_state_catcher.h:22, head)

This header declares std::optional without including <optional>, relying on transitive includes. Add #include <optional> so the shared header remains self-contained if unrelated include chains change.