Changeset View
Changeset View
Standalone View
Standalone View
src/net.cpp
Show First 20 Lines • Show All 2,633 Lines • ▼ Show 20 Lines | |||||
void CConnman::SetServices(const CService &addr, ServiceFlags nServices) { | void CConnman::SetServices(const CService &addr, ServiceFlags nServices) { | ||||
addrman.SetServices(addr, nServices); | addrman.SetServices(addr, nServices); | ||||
} | } | ||||
void CConnman::MarkAddressGood(const CAddress &addr) { | void CConnman::MarkAddressGood(const CAddress &addr) { | ||||
addrman.Good(addr); | addrman.Good(addr); | ||||
} | } | ||||
void CConnman::AddNewAddress(const CAddress &addr, const CAddress &addrFrom, | |||||
int64_t nTimePenalty) { | |||||
addrman.Add(addr, addrFrom, nTimePenalty); | |||||
} | |||||
void CConnman::AddNewAddresses(const std::vector<CAddress> &vAddr, | void CConnman::AddNewAddresses(const std::vector<CAddress> &vAddr, | ||||
const CAddress &addrFrom, int64_t nTimePenalty) { | const CAddress &addrFrom, int64_t nTimePenalty) { | ||||
addrman.Add(vAddr, addrFrom, nTimePenalty); | addrman.Add(vAddr, addrFrom, nTimePenalty); | ||||
} | } | ||||
std::vector<CAddress> CConnman::GetAddresses() { | std::vector<CAddress> CConnman::GetAddresses() { | ||||
return addrman.GetAddr(); | return addrman.GetAddr(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 442 Lines • Show Last 20 Lines |