mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Tidy up UNL module:
* Renamed module to unl * Renamed classes and members * Removed cyclic dependency in Horizon
This commit is contained in:
committed by
Nik Bougalis
parent
5d2d88209f
commit
2bfae2f0ac
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user