btck::set_mock_time

Overrides the kernel's notion of the current time, for testing.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

void
set_mock_time(std::chrono::seconds timestamp);

Parameters

NameDescription
timestampThe mock time as a duration since the Unix epoch.