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

Method ReceivedInv

src/test/txrequest_tests.cpp:113–120  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

111
112 /** Schedule a ReceivedInv call at the Scheduler's current time. */
113 void ReceivedInv(NodeId peer, const GenTxid& gtxid, bool pref, std::chrono::microseconds reqtime)
114 {
115 auto& runner = m_runner;
116 runner.actions.emplace_back(m_now, [=, &runner]() {
117 runner.txrequest.ReceivedInv(peer, gtxid, pref, reqtime);
118 runner.txrequest.SanityCheck();
119 });
120 }
121
122 /** Schedule a DisconnectedPeer call at the Scheduler's current time. */
123 void DisconnectedPeer(NodeId peer)

Callers 7

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

Calls 2

emplace_backMethod · 0.45
SanityCheckMethod · 0.45

Tested by

no test coverage detected