MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / ParseHashStr

Function ParseHashStr

src/core_read.cpp:183–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183uint256 ParseHashStr(const std::string& strHex, const std::string& strName)
184{
185 if (!IsHex(strHex)) // Note: IsHex("") is false
186 throw std::runtime_error(strName + " must be hexadecimal string (not '" + strHex + "')");
187
188 uint256 result;
189 result.SetHex(strHex);
190 return result;
191}
192
193std::vector<unsigned char> ParseHexUV(const UniValue& v, const std::string& strName)
194{

Callers

nothing calls this directly

Calls 2

IsHexFunction · 0.85
SetHexMethod · 0.45

Tested by

no test coverage detected