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

Method AdvanceTime

src/test/txrequest_tests.cpp:81–85  ·  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

79
80 /** Advance this Scenario's time; this affects the timestamps newly scheduled events get. */
81 void AdvanceTime(std::chrono::microseconds amount)
82 {
83 assert(amount.count() >= 0);
84 m_now += amount;
85 }
86
87 /** Schedule a ForgetTxHash call at the Scheduler's current time. */
88 void ForgetTxHash(const uint256& txhash)

Callers 7

BuildSingleTestFunction · 0.45
BuildPriorityTestFunction · 0.45
BuildBigPriorityTestFunction · 0.45
BuildRequestOrderTestFunction · 0.45
BuildWtxidTestFunction · 0.45
BuildTimeBackwardsTestFunction · 0.45
BuildWeirdRequestsTestFunction · 0.45

Calls 1

countMethod · 0.80

Tested by

no test coverage detected