| 28 | } |
| 29 | |
| 30 | bool 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 | |
| 39 | std::set<NodeId> InFlightIndex::nodesWithQueued(const uint256& block) const { |
no test coverage detected