MCPcopy Create free account
hub / github.com/LUX-Core/lux / ip

Function ip

src/test/DoS_tests.cpp:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34extern std::map<uint256, std::set<uint256> > mapOrphanTransactionsByPrev;
35
36CService ip(uint32_t i)
37{
38 struct in_addr s;
39 s.s_addr = i;
40 return CService(CNetAddr(s), Params().GetDefaultPort());
41}
42
43BOOST_AUTO_TEST_SUITE(DoS_tests)
44

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 4

GetDefaultPortMethod · 0.80
CServiceClass · 0.50
CNetAddrClass · 0.50
ParamsClass · 0.50

Tested by

no test coverage detected