From 799f6d757b484ed6a12cc315a0e848fc35981b31 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Thu, 5 Sep 2019 08:56:47 -0400 Subject: [PATCH] Add some docs for getchaintxstats new features --- src/rpc/blockchain.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index d1ce1188c..055ba5566 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -1946,15 +1946,18 @@ UniValue getchaintxstats(const UniValue& params, bool fHelp) throw runtime_error( "getchaintxstats\n" "\nCompute statistics about the total number and rate of transactions in the chain.\n" + "\nThis RPC will return extra data about shielded transactions, payments and notarizations if the zindex is enabled .\n" "\nArguments:\n" "1. nblocks (numeric, optional) Number of blocks in averaging window.\n" "2. blockhash (string, optional) The hash of the block which ends the window.\n" "\nResult:\n" "{\n" " \"time\": xxxxx, (numeric) The timestamp for the final block in the window in UNIX format.\n" + " \"notarizations\": xxxxx, (optional, numeric) The number of notarizations in the chain.\n" " \"txcount\": xxxxx, (numeric) The total number of transactions in the chain up to that point.\n" " \"window_final_block_hash\": \"...\", (string) The hash of the final block in the window.\n" " \"window_block_count\": xxxxx, (numeric) Size of the window in number of blocks.\n" + " \"window_notarizations\": xxxxx, (optional, numeric) Number of notarization transactions in window.\n" " \"window_tx_count\": xxxxx, (numeric) The number of transactions in the window. Only returned if \"window_block_count\" is > 0.\n" " \"window_interval\": xxxxx, (numeric) The elapsed time in the window in seconds. Only returned if \"window_block_count\" is > 0.\n" " \"txrate\": x.xx, (numeric) The average rate of transactions per second in the window. Only returned if \"window_interval\" is > 0.\n"