Skip to content

Commit 4148f55

Browse files
committed
docs: Correct description for getblockstats's txs field
It does count the coinbase transaction. Refs #19766
1 parent d254e6e commit 4148f55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/blockchain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,7 @@ static UniValue getblockstats(const JSONRPCRequest& request)
17411741
{RPCResult::Type::NUM, "total_size", "Total size of all non-coinbase transactions"},
17421742
{RPCResult::Type::NUM, "total_weight", "Total weight of all non-coinbase transactions divided by segwit scale factor (4)"},
17431743
{RPCResult::Type::NUM, "totalfee", "The fee total"},
1744-
{RPCResult::Type::NUM, "txs", "The number of transactions (excluding coinbase)"},
1744+
{RPCResult::Type::NUM, "txs", "The number of transactions (including coinbase)"},
17451745
{RPCResult::Type::NUM, "utxo_increase", "The increase/decrease in the number of unspent outputs"},
17461746
{RPCResult::Type::NUM, "utxo_size_inc", "The increase/decrease in size for the utxo index (not discounting op_return and similar)"},
17471747
}},

0 commit comments

Comments
 (0)