Fix getblocktemplate command not returning the correct claimtrie hash #70

Merged
kaykurokawa merged 1 commit from fix_getblocktemplate into master 2017-09-13 18:14:07 +02:00
Showing only changes of commit b2216fd270 - Show all commits

View file

@ -658,9 +658,7 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp)
result.push_back(Pair("curtime", pblock->GetBlockTime()));
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()));
result.push_back(Pair("claimtrie", pblock->hashClaimTrie.GetHex()));
return result;
}