Merge bitcoin/bitcoin#36063: refactor: [test] Remove deprecated SetMockTime(i64) alias

fad1e6bf23 util: refactor: Remove deprecated SetMockTime(i64) alias (MarcoFalke)
faf87c3535 test: refactor: Use FakeNodeClock over manual/global SetMockTime (MarcoFalke)

Pull request description:

  The deprecated test-only alias is only used in a few places and required in none.

  In fact, it is incorrectly used in two unit tests, so first fixup those, and then remove it.

ACKs for top commit:
  rustaceanrob:
    ACK fad1e6bf23

Tree-SHA512: 1fa49e363bf8ccad07d61a77d3bc55c84724cd4cf034756b534cdb56614f334c0009d62dbdb08a940ddf46e0143ec6ecd6b4608baa2f8f581f56a6eef0f0abb8
This commit is contained in:
merge-script
2026-08-24 15:42:16 +01:00
7 changed files with 6 additions and 15 deletions

View File

@@ -100,7 +100,7 @@ static void initialize()
SeedRandomStateForTest(SeedRand::ZEROS);
// Set time to the genesis block timestamp for deterministic initialization.
SetMockTime(1231006505);
SetMockTime(1231006505s);
// Terminate immediately if a fuzzing harness ever tries to create a socket.
// Individual tests can override this by pointing CreateSock to a mocked alternative.