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

Method IsDiscouraged

src/banman.cpp:83–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83bool BanMan::IsDiscouraged(const CNetAddr& net_addr)
84{
85 LOCK(m_banned_mutex);
86 return m_discouraged.contains(net_addr.GetAddrBytes());
87}
88
89bool BanMan::IsBanned(const CNetAddr& net_addr)
90{

Callers 6

ProcessAddrsMethod · 0.80
OpenNetworkConnectionMethod · 0.80
GetAddressesUnsafeMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
banman.cppFile · 0.80

Calls 2

GetAddrBytesMethod · 0.80
containsMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64