| 68 | }; |
| 69 | |
| 70 | unsigned int ParseScriptFlags(std::string strFlags) |
| 71 | { |
| 72 | if (strFlags.empty() || strFlags == "NONE") return 0; |
| 73 | unsigned int flags = 0; |
| 74 | std::vector<std::string> words; |
| 75 | boost::algorithm::split(words, strFlags, boost::algorithm::is_any_of(",")); |
| 76 | |
| 77 | for (const std::string& word : words) |
| 78 | { |
| 79 | if (!mapFlagNames.count(word)) |
| 80 | BOOST_ERROR("Bad test: unknown verification flag '" << word << "'"); |
| 81 | flags |= mapFlagNames[word]; |
| 82 | } |
| 83 | |
| 84 | return flags; |
| 85 | } |
| 86 | |
| 87 | // Check that all flags in STANDARD_SCRIPT_VERIFY_FLAGS are present in mapFlagNames. |
| 88 | bool CheckMapFlagNames() |
no test coverage detected