| 133 | } |
| 134 | |
| 135 | uint256 ParseHashStr(const std::string& strHex, const std::string& strName) |
| 136 | { |
| 137 | if (!IsHex(strHex)) // Note: IsHex("") is false |
| 138 | throw runtime_error(strName+" must be hexadecimal string (not '"+strHex+"')"); |
| 139 | |
| 140 | uint256 result; |
| 141 | result.SetHex(strHex); |
| 142 | return result; |
| 143 | } |
| 144 | |
| 145 | vector<unsigned char> ParseHexUV(const UniValue& v, const string& strName) |
| 146 | { |
no test coverage detected