Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ ip
Function
ip
src/test/denialofservice_tests.cpp:30–35 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
28
#include <boost/test/unit_test.hpp>
29
30
static CService ip(uint32_t i)
31
{
32
struct in_addr s;
33
s.s_addr = i;
34
return CService(CNetAddr(s), Params().GetDefaultPort());
35
}
36
37
static NodeId id = 0;
38
Callers
2
BOOST_AUTO_TEST_CASE
Function · 0.85
AddRandomOutboundPeer
Function · 0.85
Calls
4
GetDefaultPort
Method · 0.80
CService
Class · 0.50
CNetAddr
Class · 0.50
Params
Class · 0.50
Tested by
no test coverage detected