From 3ea54e5db7d53da5afa321e1800c29aa269dd3b3 Mon Sep 17 00:00:00 2001 From: Fabian Jahr Date: Fri, 5 May 2023 11:14:51 +0200 Subject: net: Add continuous ASMap health check logging --- src/netgroup.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/netgroup.h') diff --git a/src/netgroup.h b/src/netgroup.h index 2dd63ec66b..5aa6ef7742 100644 --- a/src/netgroup.h +++ b/src/netgroup.h @@ -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& 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. * -- cgit v1.2.3