mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
net: Add continuous ASMap health check logging
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user