MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / ParseHashStr

Function ParseHashStr

src/core_read.cpp:247–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247bool 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
256std::vector<uint8_t> ParseHexUV(const UniValue &v, const std::string &strName) {
257 std::string strHex;

Callers 8

rest_headersFunction · 0.85
rest_blockFunction · 0.85
rest_txFunction · 0.85
MutateTxAddInputFunction · 0.85
MutateTxSignFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
FUZZ_TARGETFunction · 0.85
generateblockFunction · 0.85

Calls 3

IsHexFunction · 0.85
sizeMethod · 0.45
SetHexMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68
FUZZ_TARGETFunction · 0.68