MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / MaybeRemoveGroup

Function MaybeRemoveGroup

src/ipgroups.cpp:208–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208static void MaybeRemoveGroup(const string &group_name) {
209 LOCK(*cs_groups);
210 for (size_t i = 0; i < groups.size(); i++) {
211 if (groups[i].header.name == group_name) {
212 groups.erase(groups.begin() + i);
213 return;
214 }
215 }
216}
217
218static bool LoadIPGroupsFromFile(const boost::filesystem::path &path, const string &group_name, int priority) {
219 boost::filesystem::ifstream stream(path);

Callers 2

BOOST_FOREACHFunction · 0.85
~IPGroupSlotMethod · 0.85

Calls 3

sizeMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected