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

Method AdvanceTime

src/test/txrequest_tests.cpp:96–100  ·  view source on GitHub ↗

Advance this Scenario's time; this affects the timestamps newly scheduled events get. */

Source from the content-addressed store, hash-verified

94
95 /** Advance this Scenario's time; this affects the timestamps newly scheduled events get. */
96 void AdvanceTime(std::chrono::microseconds amount)
97 {
98 assert(amount.count() >= 0);
99 m_now += amount;
100 }
101
102 /** Schedule a ForgetTxHash call at the Scheduler's current time. */
103 void ForgetTxHash(const uint256& txhash)

Callers 7

BuildSingleTestMethod · 0.45
BuildPriorityTestMethod · 0.45
BuildBigPriorityTestMethod · 0.45
BuildRequestOrderTestMethod · 0.45
BuildWtxidTestMethod · 0.45

Calls 1

countMethod · 0.80

Tested by

no test coverage detected