Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
75
bool BanMan::IsDiscouraged(const CNetAddr& net_addr)
76
{
77
LOCK(m_cs_banned);
78
return m_discouraged.contains(net_addr.GetAddrBytes());
79
}
80
81
bool BanMan::IsBanned(const CNetAddr& net_addr)
82
{
Callers
5
ProcessMessage
Method · 0.80
CreateNodeFromAcceptedSocket
Method · 0.80
OpenNetworkConnection
Method · 0.80
GetAddresses
Method · 0.80
BOOST_AUTO_TEST_CASE
Function · 0.80
Calls
2
GetAddrBytes
Method · 0.80
contains
Method · 0.45
Tested by
1
BOOST_AUTO_TEST_CASE
Function · 0.64