[netgroupman] Move asmap checksum calculation to NetGroupManager

This commit is contained in:
John Newbery
2021-09-01 16:34:23 +01:00
parent 1b978a7e8c
commit 4709fc2019
3 changed files with 14 additions and 9 deletions

View File

@@ -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.
*