Some miscellaneous improvements that came up when working on #21061
- The first commit is a helper to make valid mempool transactions & submit via ATMP. Introducing in this PR, using in #21061.
- The second commit is a small improvement in
miner_tests.cpp
that usesBOOST_REQUIRE_EQUAL
to properly terminate the program instead of segfaulting in the failure scenario where the blocks do not include the expected number of transactions. - The third commit changes the function signature of
GetMockTime()
to return a chrono type. - The fourth & fifth commit overload
SetMockTime
to also accept chrono type, and adds documentation to indicate that theint64_t
function signature is deprecated.