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

Function serviceFlagsToStr

src/protocol.cpp:211–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211std::vector<std::string> serviceFlagsToStr(uint64_t flags)
212{
213 std::vector<std::string> str_flags;
214
215 for (size_t i = 0; i < sizeof(flags) * 8; ++i) {
216 if (flags & (1ULL << i)) {
217 str_flags.emplace_back(serviceFlagToStr(i));
218 }
219 }
220
221 return str_flags;
222}
223
224GenTxid ToGenTxid(const CInv& inv)
225{

Callers 2

formatServicesStrFunction · 0.85
GetServicesNamesFunction · 0.85

Calls 2

serviceFlagToStrFunction · 0.85
emplace_backMethod · 0.80

Tested by

no test coverage detected