|
|
@ -447,9 +447,10 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp) |
|
|
|
|
|
|
|
"\nResult:\n" |
|
|
|
"{\n" |
|
|
|
" \"version\" : n, (numeric) The block version\n" |
|
|
|
" \"version\" : n, (numeric) The block version\n" |
|
|
|
" \"previousblockhash\" : \"xxxx\", (string) The hash of current highest block\n" |
|
|
|
" \"transactions\" : [ (array) contents of non-coinbase transactions that should be included in the next block\n" |
|
|
|
" \"finalsaplingroothash\" : \"xxxx\", (string) The hash of the final sapling root\n" |
|
|
|
" \"transactions\" : [ (array) contents of non-coinbase transactions that should be included in the next block\n" |
|
|
|
" {\n" |
|
|
|
" \"data\" : \"xxxx\", (string) transaction data encoded in hexadecimal (byte-for-byte)\n" |
|
|
|
" \"hash\" : \"xxxx\", (string) hash/id encoded in little-endian hexadecimal\n" |
|
|
@ -706,6 +707,7 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp) |
|
|
|
result.push_back(Pair("capabilities", aCaps)); |
|
|
|
result.push_back(Pair("version", pblock->nVersion)); |
|
|
|
result.push_back(Pair("previousblockhash", pblock->hashPrevBlock.GetHex())); |
|
|
|
result.push_back(Pair("finalsaplingroothash", pblock->hashFinalSaplingRoot.GetHex())); |
|
|
|
result.push_back(Pair("transactions", transactions)); |
|
|
|
if (coinbasetxn) { |
|
|
|
assert(txCoinbase.isObject()); |
|
|
|