MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / isInFlight

Method isInFlight

src/inflightindex.cpp:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30bool InFlightIndex::isInFlight(const uint256& block) const {
31 typedef std::vector<QueuedBlockPtr>::const_iterator auto_;
32 for (auto_ b = inFlight.begin(); b != inFlight.end(); ++b)
33 if ((*b)->hash == block)
34 return true;
35 return false;
36}
37
38
39std::set<NodeId> InFlightIndex::nodesWithQueued(const uint256& block) const {

Callers 5

pickDownloadStrategyMethod · 0.45
onBlockAnnouncedMethod · 0.45
MarkBlockAsReceivedFunction · 0.45
BOOST_FOREACHFunction · 0.45
findMissingBlocksMethod · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected