| 238 | } |
| 239 | |
| 240 | bool ParseHashStr(const std::string& strHex, uint256& result) |
| 241 | { |
| 242 | if ((strHex.size() != 64) || !IsHex(strHex)) |
| 243 | return false; |
| 244 | |
| 245 | result.SetHex(strHex); |
| 246 | return true; |
| 247 | } |
| 248 | |
| 249 | std::vector<unsigned char> ParseHexUV(const UniValue& v, const std::string& strName) |
| 250 | { |