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

Function ParseHashStr

src/rest.cpp:108–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108static bool ParseHashStr(const std::string& strReq, uint256& v)
109{
110 if (!IsHex(strReq) || (strReq.size() != 64))
111 return false;
112
113 v.SetHex(strReq);
114 return true;
115}
116
117static bool CheckWarmup(HTTPRequest* req)
118{

Callers 5

rest_headersFunction · 0.70
rest_blockFunction · 0.70
rest_txFunction · 0.70
MutateTxSignFunction · 0.70
prioritisetransactionFunction · 0.50

Calls 3

IsHexFunction · 0.85
sizeMethod · 0.45
SetHexMethod · 0.45

Tested by

no test coverage detected