remove Endpoint::GetExitRouters()

pull/1272/head
Jeff Becker 4 years ago
parent 44c790b65c
commit c6885ec285
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -613,12 +613,6 @@ namespace llarp
std::set<RouterID> exclude = prev;
for (const auto& snode : SnodeBlacklist())
exclude.insert(snode);
if (hop == 0)
{
const auto exits = GetExitRouters();
// exclude exit node as first hop in any paths
exclude.insert(exits.begin(), exits.end());
}
if (hop == numHops - 1)
{
// diversify endpoints
@ -633,12 +627,6 @@ namespace llarp
path::Builder::PathBuildStarted(path);
}
std::set<RouterID>
Endpoint::GetExitRouters() const
{
return {};
}
void
Endpoint::PutNewOutboundContext(const service::IntroSet& introset)
{

@ -155,10 +155,6 @@ namespace llarp
std::string
Name() const override;
/// get a set of all the routers we use as exit node
std::set<RouterID>
GetExitRouters() const;
bool
ShouldPublishDescriptors(llarp_time_t now) const override;

@ -343,12 +343,6 @@ namespace llarp
exclude.insert(m_NextIntro.router);
for (const auto& snode : m_Endpoint->SnodeBlacklist())
exclude.insert(snode);
if (hop == 0)
{
// exclude any exits as our first hop
const auto exits = m_Endpoint->GetExitRouters();
exclude.insert(exits.begin(), exits.end());
}
if (hop == numHops - 1)
{
m_Endpoint->EnsureRouterIsKnown(m_NextIntro.router);

Loading…
Cancel
Save