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

Function MockTime

src/test/fuzz/tx_pool.cpp:116–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void MockTime(FuzzedDataProvider& fuzzed_data_provider, const CChainState& chainstate)
117{
118 const auto time = ConsumeTime(fuzzed_data_provider,
119 chainstate.m_chain.Tip()->GetMedianTimePast() + 1,
120 std::numeric_limits<decltype(chainstate.m_chain.Tip()->nTime)>::max());
121 SetMockTime(time);
122}
123
124FUZZ_TARGET_INIT(tx_pool_standard, initialize_tx_pool)
125{

Callers 1

FUZZ_TARGET_INITFunction · 0.85

Calls 4

ConsumeTimeFunction · 0.85
SetMockTimeFunction · 0.85
GetMedianTimePastMethod · 0.80
TipMethod · 0.45

Tested by

no test coverage detected