SetMockTime overloads

Synopses

Declared in <util/time.h>

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

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

For testing. Set the mock time from a NodeClock time point.

void
SetMockTime(std::chrono::time_point<NodeClock, std::chrono::seconds> mock);

Parameters

Name

Description

mock_time_in

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

mock

Mock time point on the NodeClock in seconds.

Created with MrDocs