MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / serviceFlagsToStr

Function serviceFlagsToStr

src/protocol.cpp:108–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108std::vector<std::string> serviceFlagsToStr(uint64_t flags)
109{
110 std::vector<std::string> str_flags;
111
112 for (size_t i = 0; i < sizeof(flags) * 8; ++i) {
113 if (flags & (1ULL << i)) {
114 str_flags.emplace_back(serviceFlagToStr(i));
115 }
116 }
117
118 return str_flags;
119}
120
121GenTxid ToGenTxid(const CInv& inv)
122{

Callers 2

formatServicesStrFunction · 0.85
GetServicesNamesFunction · 0.85

Calls 2

serviceFlagToStrFunction · 0.85
emplace_backMethod · 0.45

Tested by

no test coverage detected