MCPcopy Create free account
hub / github.com/LUX-Core/lux / FormatScriptFlags

Function FormatScriptFlags

src/test/transaction_tests.cpp:77–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77string FormatScriptFlags(unsigned int flags)
78{
79 if (flags == 0) {
80 return "";
81 }
82 string ret;
83 std::map<string, unsigned int>::const_iterator it = mapFlagNames.begin();
84 while (it != mapFlagNames.end()) {
85 if (flags & it->second) {
86 ret += it->first + ",";
87 }
88 it++;
89 }
90 return ret.substr(0, ret.size() - 1);
91}
92
93BOOST_AUTO_TEST_SUITE(transaction_tests)
94

Callers 1

GetJSONMethod · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected