From 5bba8493d5ef0a4470935ec5d20ce6a001feb130 Mon Sep 17 00:00:00 2001 From: Larry Ruane Date: Thu, 8 Aug 2019 14:38:45 -0600 Subject: [PATCH] fix getblockdeltas documentation formatting --- src/rpc/blockchain.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 382a59e0b..685b4d4ea 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -414,7 +414,7 @@ UniValue getblockdeltas(const UniValue& params, bool fHelp) if (fHelp || params.size() != 1) throw runtime_error( "getblockdeltas \"blockhash\"\n" - "\nReturns the txid and index where an output is spent.\n" + "\nReturns information about the given block and its transactions.\n" + disabledMsg + "\nArguments:\n" "1. \"hash\" (string, required) The block hash\n" @@ -425,12 +425,12 @@ UniValue getblockdeltas(const UniValue& params, bool fHelp) " \"size\": n, (numeric) block size in bytes\n" " \"height\": n, (numeric) block height\n" " \"version\": n, (numeric) block version (e.g. 4)\n" - " \"merkleroot\": \"hash\", (string) block Merkle root\n" + " \"merkleroot\": \"hash\", (hexstring) block Merkle root\n" " \"deltas\": [\n" " {\n" - " \"txid\": \"hash\", (string) transaction ID\n" - " \"index\": n, (numeric) tx index in block\n" - " \"inputs\": [\n" + " \"txid\": \"hash\", (hexstring) transaction ID\n" + " \"index\": n, (numeric) The offset of the tx in the block\n" + " \"inputs\": [ (array of json objects)\n" " {\n" " \"address\": \"taddr\", (string) transparent address\n" " \"satoshis\": n, (numeric) negative of spend amount\n" @@ -439,7 +439,7 @@ UniValue getblockdeltas(const UniValue& params, bool fHelp) " \"prevout\": n (numeric) source utxo index\n" " }, ...\n" " ],\n" - " \"outputs\": [\n" + " \"outputs\": [ (array of json objects)\n" " {\n" " \"address\": \"taddr\", (string) transparent address\n" " \"satoshis\": n, (numeric) amount\n" @@ -448,14 +448,14 @@ UniValue getblockdeltas(const UniValue& params, bool fHelp) " ]\n" " }, ...\n" " ],\n" - " \"time\": n,\n" - " \"mediantime\": n,\n" - " \"nonce\": \"hexstring\",\n" - " \"bits\": \"hexstring\",\n" - " \"difficulty\": ,\n" - " \"chainwork\": \"hexstring\",\n" - " \"previousblockhash\": \"hash\",\n" - " \"nextblockhash\": \"hash\"\n" + " \"time\" : n, (numeric) The block version\n" + " \"mediantime\": n, (numeric) The most recent blocks' ave time\n" + " \"nonce\" : \"nonce\", (hex string) The nonce\n" + " \"bits\" : \"1d00ffff\", (hex string) The bits\n" + " \"difficulty\": n, (numeric) the current difficulty\n" + " \"chainwork\": \"xxxx\" (hex string) total amount of work in active chain\n" + " \"previousblockhash\" : \"hash\",(hex string) The hash of the previous block\n" + " \"nextblockhash\" : \"hash\" (hex string) The hash of the next block\n" "}\n" "\nExamples:\n" + HelpExampleCli("getblockdeltas", "00227e566682aebd6a7a5b772c96d7a999cadaebeaf1ce96f4191a3aad58b00b")