Skip to content

Commit 1a27af1

Browse files
committed
rpc: Improve gettxoutsetinfo help
1 parent 92cf3a2 commit 1a27af1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/node/coinstats.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
#include <map>
1717

18+
// Database-independent metric indicating the UTXO set size
1819
static uint64_t GetBogoSize(const CScript& scriptPubKey)
1920
{
2021
return 32 /* txid */ +

src/rpc/blockchain.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,15 +1050,15 @@ static RPCHelpMan gettxoutsetinfo()
10501050
RPCResult{
10511051
RPCResult::Type::OBJ, "", "",
10521052
{
1053-
{RPCResult::Type::NUM, "height", "The current block height (index)"},
1054-
{RPCResult::Type::STR_HEX, "bestblock", "The hash of the block at the tip of the chain"},
1053+
{RPCResult::Type::NUM, "height", "The block height (index) of the returned statistics"},
1054+
{RPCResult::Type::STR_HEX, "bestblock", "The hash of the block at which these statistics are calculated"},
10551055
{RPCResult::Type::NUM, "transactions", "The number of transactions with unspent outputs"},
10561056
{RPCResult::Type::NUM, "txouts", "The number of unspent transaction outputs"},
10571057
{RPCResult::Type::NUM, "bogosize", "A meaningless metric for UTXO set size"},
10581058
{RPCResult::Type::STR_HEX, "hash_serialized_2", /* optional */ true, "The serialized hash (only present if 'hash_serialized_2' hash_type is chosen)"},
10591059
{RPCResult::Type::STR_HEX, "muhash", /* optional */ true, "The serialized hash (only present if 'muhash' hash_type is chosen)"},
10601060
{RPCResult::Type::NUM, "disk_size", "The estimated size of the chainstate on disk"},
1061-
{RPCResult::Type::STR_AMOUNT, "total_amount", "The total amount"},
1061+
{RPCResult::Type::STR_AMOUNT, "total_amount", "The total amount of coins in the UTXO set"},
10621062
}},
10631063
RPCExamples{
10641064
HelpExampleCli("gettxoutsetinfo", "")

0 commit comments

Comments
 (0)