aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadav Ivgi <nadav@shesek.info>2020-08-21 17:41:02 +0300
committerfanquake <fanquake@gmail.com>2020-10-16 11:35:47 +0800
commit05bd0c220aa0f4cb6202dd19d3164ba2e7cb015e (patch)
tree451df79e0df3289ecc2002d78bfcb092d741a1ff
parentb9ac31f2d29ae3e79c0f0cde5bab2d7213e6da51 (diff)
docs: Correct description for getblockstats's txs field
It does count the coinbase transaction. Refs #19766 Github-Pull: #19777 Rebased-From: 4148f55dd016f940df50a44cf03d117cdb1dd929
-rw-r--r--src/rpc/blockchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp
index 097b1f2241..267425e108 100644
--- a/src/rpc/blockchain.cpp
+++ b/src/rpc/blockchain.cpp
@@ -1716,7 +1716,7 @@ static UniValue getblockstats(const JSONRPCRequest& request)
{RPCResult::Type::NUM, "total_size", "Total size of all non-coinbase transactions"},
{RPCResult::Type::NUM, "total_weight", "Total weight of all non-coinbase transactions divided by segwit scale factor (4)"},
{RPCResult::Type::NUM, "totalfee", "The fee total"},
- {RPCResult::Type::NUM, "txs", "The number of transactions (excluding coinbase)"},
+ {RPCResult::Type::NUM, "txs", "The number of transactions (including coinbase)"},
{RPCResult::Type::NUM, "utxo_increase", "The increase/decrease in the number of unspent outputs"},
{RPCResult::Type::NUM, "utxo_size_inc", "The increase/decrease in size for the utxo index (not discounting op_return and similar)"},
}},