MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / MockTime

Function MockTime

src/test/fuzz/tx_pool.cpp:168–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168void MockTime(FuzzedDataProvider& fuzzed_data_provider, const Chainstate& chainstate)
169{
170 const auto time = ConsumeTime(fuzzed_data_provider,
171 chainstate.m_chain.Tip()->GetMedianTimePast() + 1,
172 std::numeric_limits<decltype(chainstate.m_chain.Tip()->nTime)>::max());
173 SetMockTime(time);
174}
175
176std::unique_ptr<CTxMemPool> MakeMempool(FuzzedDataProvider& fuzzed_data_provider, const NodeContext& node)
177{

Callers 1

tx_pool.cppFile · 0.70

Calls 4

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

Tested by

no test coverage detected