| 1179 | } |
| 1180 | |
| 1181 | std::shared_ptr<const RouterInfo> NetDb::GetRandomSSU2Introducer (bool v4, const std::unordered_set<IdentHash>& excluded) const |
| 1182 | { |
| 1183 | return GetRandomRouter ( |
| 1184 | [v4, &excluded](std::shared_ptr<const RouterInfo> router)->bool |
| 1185 | { |
| 1186 | return !router->IsHidden () && router->IsSSU2Introducer (v4) && |
| 1187 | !excluded.count (router->GetIdentHash ()); |
| 1188 | }); |
| 1189 | } |
| 1190 | |
| 1191 | std::shared_ptr<const RouterInfo> NetDb::GetHighBandwidthRandomRouter (std::shared_ptr<const RouterInfo> compatibleWith, |
| 1192 | bool reverse, bool endpoint) const |
no test coverage detected