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

Method Discourage

src/banman.cpp:116–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void BanMan::Discourage(const CNetAddr& net_addr)
117{
118 LOCK(m_cs_banned);
119 m_discouraged.insert(net_addr.GetAddrBytes());
120}
121
122void BanMan::Ban(const CSubNet& sub_net, int64_t ban_time_offset, bool since_unix_epoch)
123{

Callers 2

FUZZ_TARGET_INITFunction · 0.80

Calls 2

GetAddrBytesMethod · 0.80
insertMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.64