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

Function SeenLocal

src/net.cpp:214–225  ·  view source on GitHub ↗

vote for a local address */

Source from the content-addressed store, hash-verified

212
213/** vote for a local address */
214bool SeenLocal(const CService& addr) {
215 {
216 LOCK(cs_mapLocalHost);
217 if (mapLocalHost.count(addr) == 0)
218 return false;
219 mapLocalHost[addr].nScore++;
220 }
221
222 AdvertizeLocal();
223
224 return true;
225}
226
227/** check whether a given address is potentially local */
228bool IsLocal(const CService& addr) {

Callers 1

ProcessVersionMessageFunction · 0.85

Calls 2

AdvertizeLocalFunction · 0.85
countMethod · 0.45

Tested by

no test coverage detected