Tidy up UNL module:

* Renamed module to unl
* Renamed classes and members
* Removed cyclic dependency in Horizon
This commit is contained in:
Vinnie Falco
2015-07-18 13:07:37 -07:00
committed by Nik Bougalis
parent 5d2d88209f
commit 2bfae2f0ac
24 changed files with 673 additions and 186 deletions

View File

@@ -111,6 +111,18 @@ OverlayImpl::Timer::on_timer (error_code ec)
overlay_.sendEndpoints();
overlay_.autoConnect();
{
std::lock_guard<
std::recursive_mutex> lock (overlay_.mutex_);
for (auto const& e : overlay_.m_publicKeyMap)
{
auto const sp = e.second.lock();
if (sp)
if (sp->unlHorizon_->shouldDrop())
sp->fail("Poor UNL horizon");
}
}
if ((++overlay_.timer_count_ % Tuning::checkSeconds) == 0)
overlay_.check();