| 125 | } |
| 126 | |
| 127 | uint256 ParseHashUV(const UniValue& v, const string& strName) |
| 128 | { |
| 129 | string strHex; |
| 130 | if (v.isStr()) |
| 131 | strHex = v.getValStr(); |
| 132 | return ParseHashStr(strHex, strName); // Note: ParseHashStr("") throws a runtime_error |
| 133 | } |
| 134 | |
| 135 | uint256 ParseHashStr(const std::string& strHex, const std::string& strName) |
| 136 | { |
no test coverage detected