MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / SetReachable

Function SetReachable

src/net.cpp:160–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void SetReachable(enum Network net, bool fFlag) {
161 LOCK(cs_mapLocalHost);
162 vfReachable[net] = fFlag;
163 if (net == NET_IPV6 && fFlag)
164 vfReachable[NET_IPV4] = true;
165}
166
167// learn a new local address
168bool AddLocal(const CService& addr, int32_t nScore) {

Callers 2

AppInitFunction · 0.85
AddLocalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected