diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2023-05-05 11:14:51 +0200 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2023-12-02 22:03:08 +0100 |
commit | 3ea54e5db7d53da5afa321e1800c29aa269dd3b3 (patch) | |
tree | 3348fa7d97f62e00b67a422fae8cd8989ac06b6f /src/netgroup.h | |
parent | 28d7e55dff826a69f3f8e58139dbffb611cc5947 (diff) | |
download | bitcoin-3ea54e5db7d53da5afa321e1800c29aa269dd3b3.tar.xz |
net: Add continuous ASMap health check logging
Diffstat (limited to 'src/netgroup.h')
-rw-r--r-- | src/netgroup.h | 10 |
1 files changed, 10 insertions, 0 deletions
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<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. * |