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

Method Discourage

src/banman.cpp:124–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void BanMan::Discourage(const CNetAddr& net_addr)
125{
126 LOCK(m_banned_mutex);
127 m_discouraged.insert(net_addr.GetAddrBytes());
128}
129
130void BanMan::Ban(const CSubNet& sub_net, int64_t ban_time_offset, bool since_unix_epoch)
131{

Callers 2

banman.cppFile · 0.80

Calls 2

GetAddrBytesMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected