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

Method GetBanned

src/banman.cpp:166–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void BanMan::GetBanned(banmap_t& banmap)
167{
168 LOCK(m_cs_banned);
169 // Sweep the banlist so expired bans are not returned
170 SweepBanned();
171 banmap = m_banned; //create a thread safe copy
172}
173
174void BanMan::SweepBanned()
175{

Callers 4

BOOST_AUTO_TEST_CASEFunction · 0.80
FUZZ_TARGET_INITFunction · 0.80
listbannedFunction · 0.80
getBannedMethod · 0.80

Calls

no outgoing calls

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
FUZZ_TARGET_INITFunction · 0.64