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

Function ParseHashStr

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

Source from the content-addressed store, hash-verified

99}
100
101static bool ParseHashStr(const string& strReq, uint256& v)
102{
103 if (!IsHex(strReq) || (strReq.size() != 64))
104 return false;
105
106 v.SetHex(strReq);
107 return true;
108}
109
110static bool CheckWarmup(HTTPRequest* req)
111{

Callers 4

rest_headersFunction · 0.70
rest_blockFunction · 0.70
rest_txFunction · 0.70
prioritisetransactionFunction · 0.70

Calls 3

IsHexFunction · 0.85
sizeMethod · 0.45
SetHexMethod · 0.45

Tested by

no test coverage detected