mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-11 21:20:39 +02:00
Merge bitcoin/bitcoin#36063: refactor: [test] Remove deprecated SetMockTime(i64) alias
fad1e6bf23util: refactor: Remove deprecated SetMockTime(i64) alias (MarcoFalke)faf87c3535test: 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: ACKfad1e6bf23Tree-SHA512: 1fa49e363bf8ccad07d61a77d3bc55c84724cd4cf034756b534cdb56614f334c0009d62dbdb08a940ddf46e0143ec6ecd6b4608baa2f8f581f56a6eef0f0abb8
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user