MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetProxy

Function GetProxy

src/netbase.cpp:726–734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724}
725
726std::optional<Proxy> GetProxy(enum Network net)
727{
728 assert(net >= 0 && net < NET_MAX);
729 LOCK(g_proxyinfo_mutex);
730 if (!proxyInfo[net].IsValid()) {
731 return std::nullopt;
732 }
733 return proxyInfo[net];
734}
735
736bool SetNameProxy(const Proxy &addrProxy) {
737 if (!addrProxy.IsValid())

Callers 5

ConnectNodeMethod · 0.85
ProxyForIPv4or6Method · 0.85
StartMethod · 0.85
GetNetworksInfoFunction · 0.85
getProxyMethod · 0.85

Calls 1

IsValidMethod · 0.45

Tested by

no test coverage detected