[net] remove CConnman::AddNewAddresses

It just forwards calls to CAddrMan::Add.
This commit is contained in:
John Newbery
2020-10-23 10:24:16 +01:00
parent bcd7f30b79
commit 7c4cc67c0c
5 changed files with 4 additions and 18 deletions

View File

@@ -2681,7 +2681,7 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
if (fReachable)
vAddrOk.push_back(addr);
}
m_connman.AddNewAddresses(vAddrOk, pfrom.addr, 2 * 60 * 60);
m_addrman.Add(vAddrOk, pfrom.addr, 2 * 60 * 60);
if (vAddr.size() < 1000)
pfrom.fGetAddr = false;
if (pfrom.IsAddrFetchConn()) {