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

Method Group

src/ipgroups.cpp:369–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369CIPGroupData IPGroupSlot::Group() {
370 LOCK(*cs_groups);
371 typedef std::vector<CIPGroup>::iterator auto_;
372 for (auto_ g = groups.begin(); g != groups.end(); ++g)
373 if (g->header.name == groupName)
374 return g->header;
375
376 return CIPGroupData();
377}
378
379std::unique_ptr<IPGroupSlot> AssignIPGroupSlot(const CNetAddr& ip) {
380 LOCK(*cs_groups);

Callers 3

ProcessMessageFunction · 0.80
CNodeMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 3

CIPGroupDataClass · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64