diff options
author | John Newbery <john@johnnewbery.com> | 2021-09-01 16:34:23 +0100 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2022-04-20 14:35:53 +0100 |
commit | 4709fc2019e27e74be02dc5fc123b9f6f46d7990 (patch) | |
tree | 25170c62329cab5a2a8afe7989f785f59d7ac9a0 /src/netgroup.h | |
parent | 1b978a7e8c71dcc1501705022e66f6779c8c4528 (diff) | |
download | bitcoin-4709fc2019e27e74be02dc5fc123b9f6f46d7990.tar.xz |
[netgroupman] Move asmap checksum calculation to NetGroupManager
Diffstat (limited to 'src/netgroup.h')
-rw-r--r-- | src/netgroup.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/netgroup.h b/src/netgroup.h index 4e4edb8a88..6f495b166b 100644 --- a/src/netgroup.h +++ b/src/netgroup.h @@ -6,6 +6,7 @@ #define BITCOIN_NETGROUP_H #include <netaddress.h> +#include <uint256.h> #include <vector> @@ -22,6 +23,9 @@ public: * exists, since the data is const. */ const std::vector<bool>& GetAsmap() const { return m_asmap; } + /** Get a checksum identifying the asmap being used. */ + uint256 GetAsmapChecksum() const; + /** * Get the canonical identifier of the network group for address. * |