Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
83
bool BanMan::IsDiscouraged(const CNetAddr& net_addr)
84
{
85
LOCK(m_banned_mutex);
86
return m_discouraged.contains(net_addr.GetAddrBytes());
87
}
88
89
bool BanMan::IsBanned(const CNetAddr& net_addr)
90
{
Callers
6
ProcessAddrs
Method · 0.80
CreateNodeFromAcceptedSocket
Method · 0.80
OpenNetworkConnection
Method · 0.80
GetAddressesUnsafe
Method · 0.80
BOOST_AUTO_TEST_CASE
Function · 0.80
banman.cpp
File · 0.80
Calls
2
GetAddrBytes
Method · 0.80
contains
Method · 0.45
Tested by
1
BOOST_AUTO_TEST_CASE
Function · 0.64