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

Method queuedPtrsFor

src/inflightindex.cpp:50–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50std::vector<QueuedBlockPtr> InFlightIndex::queuedPtrsFor(const uint256& block) const {
51 std::vector<QueuedBlockPtr> q;
52
53 typedef std::vector<QueuedBlockPtr>::const_iterator auto_;
54 for (auto_ b = inFlight.begin(); b != inFlight.end(); ++b) {
55 if ((*b)->hash != block)
56 continue;
57 q.push_back(*b);
58 }
59 return q;
60}
61
62QueuedBlockPtr InFlightIndex::queuedItem(NodeId id, const uint256& block) const {
63 typedef std::vector<QueuedBlockPtr>::const_iterator auto_;

Callers 1

MarkBlockAsReceivedFunction · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected