net: Add continuous ASMap health check logging

This commit is contained in:
Fabian Jahr
2023-05-05 11:14:51 +02:00
parent 28d7e55dff
commit 3ea54e5db7
5 changed files with 62 additions and 0 deletions

View File

@@ -41,6 +41,16 @@ public:
*/
uint32_t GetMappedAS(const CNetAddr& address) const;
/**
* Analyze and log current health of ASMap based buckets.
*/
void ASMapHealthCheck(const std::vector<CNetAddr>& clearnet_addrs) const;
/**
* Indicates whether ASMap is being used for clearnet bucketing.
*/
bool UsingASMap() const;
private:
/** Compressed IP->ASN mapping, loaded from a file when a node starts.
*