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

Method ReceivedInv

src/test/txrequest_tests.cpp:98–105  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

96
97 /** Schedule a ReceivedInv call at the Scheduler's current time. */
98 void ReceivedInv(NodeId peer, const GenTxid& gtxid, bool pref, std::chrono::microseconds reqtime)
99 {
100 auto& runner = m_runner;
101 runner.actions.emplace_back(m_now, [=,&runner]() {
102 runner.txrequest.ReceivedInv(peer, gtxid, pref, reqtime);
103 runner.txrequest.SanityCheck();
104 });
105 }
106
107 /** Schedule a DisconnectedPeer call at the Scheduler's current time. */
108 void DisconnectedPeer(NodeId peer)

Callers 7

BuildSingleTestFunction · 0.45
BuildPriorityTestFunction · 0.45
BuildBigPriorityTestFunction · 0.45
BuildRequestOrderTestFunction · 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