MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / GetRandomRouterInFamily

Method GetRandomRouterInFamily

libi2pd/NetDb.cpp:1321–1328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1319 }
1320
1321 std::shared_ptr<const RouterInfo> NetDb::GetRandomRouterInFamily (FamilyID fam) const
1322 {
1323 return GetRandomRouter(
1324 [fam](std::shared_ptr<const RouterInfo> router)->bool
1325 {
1326 return router->IsFamily(fam);
1327 });
1328 }
1329
1330 std::vector<IdentHash> NetDb::GetExploratoryNonFloodfill (const IdentHash& destination,
1331 size_t num, const std::unordered_set<IdentHash>& excluded)

Callers 1

GetRestrictedPeerMethod · 0.80

Calls 1

IsFamilyMethod · 0.80

Tested by

no test coverage detected