This PR expands the CheckGlobals
utility that was introduced in #31486 and should help with fuzz stability (https://github.com/bitcoin/bitcoin/issues/29018).
System time shouldn’t be used when running a fuzz test, as it is likely to introduce instability (non-determinism). This PR identifies and fixes the targets that were calling system time without setting mock time at the start of an iteration.
RemovingSetMockTime()
from any one of these targets should result in a crash and a message describing the issue.