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

Method GetRandomSSU2Introducer

libi2pd/NetDb.cpp:1181–1189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

UpdateIntroducersMethod · 0.80

Calls 2

IsSSU2IntroducerMethod · 0.80
IsHiddenMethod · 0.45

Tested by

no test coverage detected