MCPcopy Create free account
hub / github.com/ElementsProject/elements / IsDiscouraged

Method IsDiscouraged

src/banman.cpp:75–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75bool BanMan::IsDiscouraged(const CNetAddr& net_addr)
76{
77 LOCK(m_cs_banned);
78 return m_discouraged.contains(net_addr.GetAddrBytes());
79}
80
81bool BanMan::IsBanned(const CNetAddr& net_addr)
82{

Callers 5

ProcessMessageMethod · 0.80
OpenNetworkConnectionMethod · 0.80
GetAddressesMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 2

GetAddrBytesMethod · 0.80
containsMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64