mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-01 03:01:05 +00:00
These currently call through to the CNetAddr methods. The logic will be moved in a future commit.
16 lines
454 B
C++
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);
|
|
}
|