rpc: add claimtrie field in getblocktemplate

getblocktemplate is supposed to output all required mining infos
This commit is contained in:
Tanguy Pruvot 2016-07-21 22:01:47 +02:00
parent 874948ec59
commit ce7f414962

View file

@ -659,6 +659,9 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp)
result.push_back(Pair("bits", strprintf("%08x", pblock->nBits)));
result.push_back(Pair("height", (int64_t)(pindexPrev->nHeight+1)));
if (pclaimTrie)
result.push_back(Pair("claimtrie", pclaimTrie->getMerkleHash().GetHex()));
return result;
}