[netgroupman] Move asmap checksum calculation to NetGroupManager
This commit is contained in:
1 parent
1b978a7e8c
commit
4709fc2019
3 files changed
+14
-9
No files matched your search
@@ -4,8 +4,16 @@
|
||||
|
||||
#include <netgroup.h>
|
||||
|
||||
#include <hash.h>
|
||||
#include <util/asmap.h>
|
||||
|
||||
uint256 NetGroupManager::GetAsmapChecksum() const
|
||||
{
|
||||
if (!m_asmap.size()) return {};
|
||||
|
||||
return SerializeHash(m_asmap);
|
||||
}
|
||||
|
||||
std::vector<unsigned char> NetGroupManager::GetGroup(const CNetAddr& address) const
|
||||
{
|
||||
std::vector<unsigned char> vchRet;
|
||||
|
||||
Reference in new issue
Block a user