| 133 | return ParseHashV(find_value(o, strKey), strKey); |
| 134 | } |
| 135 | std::vector<unsigned char> ParseHexV(const UniValue& v, std::string strName) |
| 136 | { |
| 137 | std::string strHex; |
| 138 | if (v.isStr()) |
| 139 | strHex = v.get_str(); |
| 140 | if (!IsHex(strHex)) |
| 141 | throw JSONRPCError(RPC_INVALID_PARAMETER, strName+" must be hexadecimal string (not '"+strHex+"')"); |
| 142 | return ParseHex(strHex); |
| 143 | } |
| 144 | std::vector<unsigned char> ParseHexO(const UniValue& o, std::string strKey) |
| 145 | { |
| 146 | return ParseHexV(find_value(o, strKey), strKey); |
no test coverage detected