From 6b2268162e96bc4fe1a3ebad454996b1d3d4615c Mon Sep 17 00:00:00 2001 From: John Newbery Date: Wed, 1 Sep 2021 12:12:52 +0100 Subject: [netgroupman] Add GetMappedAS() and GetGroup() These currently call through to the CNetAddr methods. The logic will be moved in a future commit. --- src/netgroup.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/netgroup.h') diff --git a/src/netgroup.h b/src/netgroup.h index fcf46bb2bb..46afc6e3c5 100644 --- a/src/netgroup.h +++ b/src/netgroup.h @@ -5,6 +5,8 @@ #ifndef BITCOIN_NETGROUP_H #define BITCOIN_NETGROUP_H +#include + #include /** @@ -20,6 +22,10 @@ public: * exists, since the data is const. */ const std::vector& GetAsmap() const { return m_asmap; } + std::vector GetGroup(const CNetAddr& address) const; + + uint32_t GetMappedAS(const CNetAddr& address) const; + private: /** Compressed IP->ASN mapping, loaded from a file when a node starts. * -- cgit v1.2.3