1967 | + std::transform(v4_addrs.begin(), v4_addrs.end(), std::back_inserter(clearnet_addrs),
1968 | + [](const CAddress& addr) { return static_cast<CNetAddr>(addr); });
1969 | + std::transform(v6_addrs.begin(), v6_addrs.end(), std::back_inserter(clearnet_addrs),
1970 | + [](const CAddress& addr) { return static_cast<CNetAddr>(addr); });
1971 | + m_connman.ASMapHealthCheck(clearnet_addrs);
1972 | + }
I think this belongs in net.cpp and shouldn't use the block height.
(ignore if you were going to change this once out of draft anyway)
I wasn't happy with the location myself but I need more time to think about where it would fit in best, so happy to take suggestions. I just tried to put it somewhere where it requires the least amount of new dependencies and shipped it to get conceptual feedback.
and shouldn't use the block height.
What do you suggest to use instead of block height?
happy to take suggestions.
I think it would make sense for the opencon thread (ThreadOpenConnections) to handle this.
What do you suggest to use instead of block height?
if (m_last_asmap_health_check + 24h < NodeClock::now()) {
// Do health check
}
Sounds good, I am using this now.