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

Function ip

src/test/net_peer_connection_tests.cpp:39–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37BOOST_FIXTURE_TEST_SUITE(net_peer_connection_tests, LogIPsTestingSetup)
38
39static CService ip(uint32_t i)
40{
41 struct in_addr s;
42 s.s_addr = i;
43 return CService{CNetAddr{s}, Params().GetDefaultPort()};
44}
45
46struct PeerTest : LogIPsTestingSetup {
47/** Create a peer and connect to it. If the optional `address` (IP/CJDNS only) isn't passed, a random address is created. */

Callers 1

AddPeerMethod · 0.70

Calls 2

ParamsClass · 0.50
GetDefaultPortMethod · 0.45

Tested by

no test coverage detected