There are 78 cpp files that include util.h (grep -iIr "#include <test/fuzz/util.h>" src/test/fuzz | wc -l). Modifying the implementation of a fuzz helper in src/test/fuzz/util.h will cause all fuzz tests to be recompiled. Keeping the declarations of these non-template fuzz helpers in util.h and moving their implementations to util.cpp will skip the redundant recompilation of all the fuzz tests, and builds these helpers only once in util.cpp.
Functions moved from util.h to util.cpp:
ConsumeTxMemPoolEntryContainsSpentInputConsumeNetAddr- Methods of
FuzzedFileProvider::(open, read, write, seek, close)