File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ NodeClock::time_point NodeClock::now() noexcept
38
38
};
39
39
40
40
void SetMockTime (int64_t nMockTimeIn) { SetMockTime (std::chrono::seconds{nMockTimeIn}); }
41
+ void SetMockTime (std::chrono::time_point<NodeClock, std::chrono::seconds> mock) { SetMockTime (mock.time_since_epoch ()); }
41
42
void SetMockTime (std::chrono::seconds mock_time_in)
42
43
{
43
44
Assert (mock_time_in >= 0s);
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ void SetMockTime(int64_t nMockTimeIn);
107
107
108
108
/* * For testing. Set e.g. with the setmocktime rpc, or -mocktime argument */
109
109
void SetMockTime (std::chrono::seconds mock_time_in);
110
+ void SetMockTime (std::chrono::time_point<NodeClock, std::chrono::seconds> mock);
110
111
111
112
/* * For testing */
112
113
std::chrono::seconds GetMockTime ();
You can’t perform that action at this time.
0 commit comments