Merge pull request #24 from tpruvot/rpc

rpc: add claimtrie field in getblocktemplate
This commit is contained in:
Alex Grin 2016-07-25 12:30:18 -04:00 committed by GitHub
commit a5dc212ef5

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("bits", strprintf("%08x", pblock->nBits)));
result.push_back(Pair("height", (int64_t)(pindexPrev->nHeight+1))); result.push_back(Pair("height", (int64_t)(pindexPrev->nHeight+1)));
if (pclaimTrie)
result.push_back(Pair("claimtrie", pclaimTrie->getMerkleHash().GetHex()));
return result; return result;
} }