bitcoin/src/netgroup.cpp
John Newbery 6b2268162e [netgroupman] Add GetMappedAS() and GetGroup()
These currently call through to the CNetAddr methods. The logic will be moved in a future commit.
2022-04-20 14:35:52 +01:00

16 lines
454 B
C++

// Copyright (c) 2021 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <netgroup.h>
std::vector<unsigned char> NetGroupManager::GetGroup(const CNetAddr& address) const
{
return address.GetGroup(m_asmap);
}
uint32_t NetGroupManager::GetMappedAS(const CNetAddr& address) const
{
return address.GetMappedAS(m_asmap);
}