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

Method SetSpecial

src/netaddress.cpp:212–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}; // namespace torv3
211
212bool CNetAddr::SetSpecial(std::string_view addr)
213{
214 if (!ContainsNoNUL(addr)) {
215 return false;
216 }
217
218 if (SetTor(addr)) {
219 return true;
220 }
221
222 if (SetI2P(addr)) {
223 return true;
224 }
225
226 return false;
227}
228
229bool CNetAddr::SetTor(std::string_view addr)
230{

Callers 9

DestBinToAddrFunction · 0.80
LookupInternFunction · 0.80
GetDefaultPortMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
AddPeerMethod · 0.80
AddRandomOutboundPeerMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
AddrManSelectByNetworkFunction · 0.80

Calls 1

ContainsNoNULFunction · 0.85

Tested by 5

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
AddPeerMethod · 0.64
AddRandomOutboundPeerMethod · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64