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

Method RequestedTx

src/test/txrequest_tests.cpp:118–125  ·  view source on GitHub ↗

Schedule a RequestedTx call at the Scheduler's current time. */

Source from the content-addressed store, hash-verified

116
117 /** Schedule a RequestedTx call at the Scheduler's current time. */
118 void RequestedTx(NodeId peer, const uint256& txhash, std::chrono::microseconds exptime)
119 {
120 auto& runner = m_runner;
121 runner.actions.emplace_back(m_now, [=,&runner]() {
122 runner.txrequest.RequestedTx(peer, txhash, exptime);
123 runner.txrequest.SanityCheck();
124 });
125 }
126
127 /** Schedule a ReceivedResponse call at the Scheduler's current time. */
128 void ReceivedResponse(NodeId peer, const uint256& txhash)

Callers 5

BuildSingleTestFunction · 0.45
BuildPriorityTestFunction · 0.45
BuildWtxidTestFunction · 0.45
BuildTimeBackwardsTestFunction · 0.45
BuildWeirdRequestsTestFunction · 0.45

Calls 2

emplace_backMethod · 0.80
SanityCheckMethod · 0.45

Tested by

no test coverage detected