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

Function FormatScriptFlags

src/test/transaction_tests.cpp:68–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68string FormatScriptFlags(unsigned int flags)
69{
70 if (flags == 0) {
71 return "";
72 }
73 string ret;
74 std::map<string, unsigned int>::const_iterator it = mapFlagNames.begin();
75 while (it != mapFlagNames.end()) {
76 if (flags & it->second) {
77 ret += it->first + ",";
78 }
79 it++;
80 }
81 return ret.substr(0, ret.size() - 1);
82}
83
84BOOST_FIXTURE_TEST_SUITE(transaction_tests, BasicTestingSetup)
85

Callers 1

GetJSONMethod · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected