MCPcopy Create free account
hub / github.com/ElementsProject/elements / TestOnlyResetTimeData

Function TestOnlyResetTimeData

src/timedata.cpp:113–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void TestOnlyResetTimeData()
114{
115 LOCK(g_timeoffset_mutex);
116 nTimeOffset = 0;
117 g_sources.clear();
118 g_time_offsets = CMedianFilter<int64_t>{BITCOIN_TIMEDATA_MAX_SAMPLES, 0};
119 g_warning_emitted = false;
120}

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected