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

Method ClearBanned

src/banman.cpp:64–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void BanMan::ClearBanned()
65{
66 {
67 LOCK(m_cs_banned);
68 m_banned.clear();
69 m_is_dirty = true;
70 }
71 DumpBanlist(); //store banlist to disk
72 if (m_client_interface) m_client_interface->BannedListChanged();
73}
74
75bool BanMan::IsDiscouraged(const CNetAddr& net_addr)
76{

Callers 3

BOOST_AUTO_TEST_CASEFunction · 0.80
FUZZ_TARGET_INITFunction · 0.80
clearbannedFunction · 0.80

Calls 2

BannedListChangedMethod · 0.80
clearMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
FUZZ_TARGET_INITFunction · 0.64