set unreachable trough NetDb

This commit is contained in:
orignal 2014-10-24 15:39:53 -04:00
parent af997473b2
commit c9abb62988
6 changed files with 38 additions and 28 deletions

View file

@ -229,6 +229,13 @@ namespace data
return nullptr;
}
void NetDb::SetUnreachable (const IdentHash& ident, bool unreachable)
{
auto it = m_RouterInfos.find (ident);
if (it != m_RouterInfos.end ())
return it->second->SetUnreachable (unreachable);
}
// TODO: Move to reseed and/or scheduled tasks. (In java version, scheduler fix this as well as sort RIs.)
bool NetDb::CreateNetDb(boost::filesystem::path directory)
{