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

Function FormatScriptFlags

src/test/transaction_tests.cpp:78–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

GetJSONMethod · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected