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
3838};
3939
4040void 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 ()); }
4142void SetMockTime (std::chrono::seconds mock_time_in)
4243{
4344 Assert (mock_time_in >= 0s);
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ void SetMockTime(int64_t nMockTimeIn);
107107
108108/* * For testing. Set e.g. with the setmocktime rpc, or -mocktime argument */
109109void SetMockTime (std::chrono::seconds mock_time_in);
110+ void SetMockTime (std::chrono::time_point<NodeClock, std::chrono::seconds> mock);
110111
111112/* * For testing */
112113std::chrono::seconds GetMockTime ();
You can’t perform that action at this time.
0 commit comments