| 245 | } |
| 246 | |
| 247 | bool ParseHashStr(const std::string &strHex, uint256 &result) { |
| 248 | if ((strHex.size() != 64) || !IsHex(strHex)) { |
| 249 | return false; |
| 250 | } |
| 251 | |
| 252 | result.SetHex(strHex); |
| 253 | return true; |
| 254 | } |
| 255 | |
| 256 | std::vector<uint8_t> ParseHexUV(const UniValue &v, const std::string &strName) { |
| 257 | std::string strHex; |