Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 264 Lines • ▼ Show 20 Lines | void ForEachNodeThen(Callable &&pre, CallableAfter &&post) const { | ||||
if (NodeFullyConnected(node)) { | if (NodeFullyConnected(node)) { | ||||
pre(node); | pre(node); | ||||
} | } | ||||
} | } | ||||
post(); | post(); | ||||
}; | }; | ||||
// Addrman functions | // Addrman functions | ||||
size_t GetAddressCount() const; | |||||
void SetServices(const CService &addr, ServiceFlags nServices); | void SetServices(const CService &addr, ServiceFlags nServices); | ||||
void MarkAddressGood(const CAddress &addr); | void MarkAddressGood(const CAddress &addr); | ||||
void AddNewAddresses(const std::vector<CAddress> &vAddr, | void AddNewAddresses(const std::vector<CAddress> &vAddr, | ||||
const CAddress &addrFrom, int64_t nTimePenalty = 0); | const CAddress &addrFrom, int64_t nTimePenalty = 0); | ||||
std::vector<CAddress> GetAddresses(); | std::vector<CAddress> GetAddresses(); | ||||
// This allows temporarily exceeding m_max_outbound_full_relay, with the | // This allows temporarily exceeding m_max_outbound_full_relay, with the | ||||
// goal of finding a peer that is better than all our current peers. | // goal of finding a peer that is better than all our current peers. | ||||
▲ Show 20 Lines • Show All 794 Lines • Show Last 20 Lines |