MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / SetProxy

Function SetProxy

src/netbase.cpp:514–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512}
513
514bool SetProxy(enum Network net, const proxyType &addrProxy) {
515 assert(net >= 0 && net < NET_MAX);
516 if (!addrProxy.IsValid())
517 return false;
518 LOCK(cs_proxyInfos);
519 proxyInfo[net] = addrProxy;
520 return true;
521}
522
523bool GetProxy(enum Network net, proxyType &proxyInfoOut) {
524 assert(net >= 0 && net < NET_MAX);

Callers 1

AppInit2Function · 0.85

Calls 1

IsValidMethod · 0.45

Tested by

no test coverage detected