MCPcopy Create free account
hub / github.com/LUX-Core/lux / DecodeHexBlk

Function DecodeHexBlk

src/core_read.cpp:113–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113bool DecodeHexBlk(CBlock& block, const std::string& strHexBlk)
114{
115 if (!IsHex(strHexBlk))
116 return false;
117
118 std::vector<unsigned char> blockData(ParseHex(strHexBlk));
119 CDataStream ssBlock(blockData, SER_NETWORK, PROTOCOL_VERSION);
120 try {
121 ssBlock >> block;
122 } catch (const std::exception&) {
123 return false;
124 }
125
126 return true;
127}
128
129uint256 ParseHashUV(const UniValue& v, const string& strName)
130{

Callers 2

getblocktemplateFunction · 0.85
submitblockFunction · 0.85

Calls 2

IsHexFunction · 0.85
ParseHexFunction · 0.85

Tested by

no test coverage detected