test: Remove unused AddrManTest class

pull/23826/head
Martin Zumsande 3 years ago
parent b696d7870b
commit f0e5efb824

@ -142,7 +142,6 @@ public:
const std::vector<bool>& GetAsmap() const; const std::vector<bool>& GetAsmap() const;
friend class AddrManTest;
friend class AddrManDeterministic; friend class AddrManDeterministic;
private: private:

@ -22,32 +22,6 @@
using namespace std::literals; using namespace std::literals;
class AddrManTest : public AddrMan
{
public:
explicit AddrManTest(std::vector<bool> asmap = std::vector<bool>())
: AddrMan(asmap, /*deterministic=*/true, /*consistency_check_ratio=*/100)
{}
AddrInfo* Find(const CService& addr)
{
LOCK(m_impl->cs);
return m_impl->Find(addr);
}
AddrInfo* Create(const CAddress& addr, const CNetAddr& addrSource, int* pnId)
{
LOCK(m_impl->cs);
return m_impl->Create(addr, addrSource, pnId);
}
void Delete(int nId)
{
LOCK(m_impl->cs);
m_impl->Delete(nId);
}
};
static CNetAddr ResolveIP(const std::string& ip) static CNetAddr ResolveIP(const std::string& ip)
{ {
CNetAddr addr; CNetAddr addr;

Loading…
Cancel
Save