| 48 | } |
| 49 | |
| 50 | std::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 | |
| 62 | QueuedBlockPtr InFlightIndex::queuedItem(NodeId id, const uint256& block) const { |
| 63 | typedef std::vector<QueuedBlockPtr>::const_iterator auto_; |
no test coverage detected