MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / FormatScriptFlags

Function FormatScriptFlags

src/test/scriptflags.cpp:56–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56std::string FormatScriptFlags(uint32_t flags) {
57 if (flags == 0) {
58 return "";
59 }
60
61 std::string ret;
62 std::map<std::string, uint32_t>::const_iterator it = mapFlagNames.begin();
63 while (it != mapFlagNames.end()) {
64 if (flags & it->second) {
65 ret += it->first + ",";
66 }
67 it++;
68 }
69
70 return ret.substr(0, ret.size() - 1);
71}

Callers 1

GetJSONMethod · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected