SetMockTime

For testing. Set e.g. with the setmocktime rpc, or -mocktime argument.

Synopsis

Declared in <util/time.h>

void
SetMockTime(std::chrono::seconds mock_time_in);

Parameters

NameDescription
mock_time_inMock time as a duration in seconds, or zero to disable mocking.