| 75 | } |
| 76 | |
| 77 | string 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 | |
| 93 | BOOST_AUTO_TEST_SUITE(transaction_tests) |
| 94 |