diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2020-08-22 20:25:23 +0200 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2021-03-23 20:32:47 +0100 |
commit | 1a27af1d7b5ec18b4248ead1eaf0f381047b4b24 (patch) | |
tree | e808644730e02cd69a244624b50edc8cf3d500be | |
parent | 92cf3a22e3c79ce28c5cc9dcbc18348c43cbe4d9 (diff) | |
download | bitcoin-1a27af1d7b5ec18b4248ead1eaf0f381047b4b24.tar.xz |
rpc: Improve gettxoutsetinfo help
-rw-r--r-- | src/node/coinstats.cpp | 1 | ||||
-rw-r--r-- | src/rpc/blockchain.cpp | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/node/coinstats.cpp b/src/node/coinstats.cpp index 88bdba5953..268580c6e6 100644 --- a/src/node/coinstats.cpp +++ b/src/node/coinstats.cpp @@ -15,6 +15,7 @@ #include <map> +// Database-independent metric indicating the UTXO set size static uint64_t GetBogoSize(const CScript& scriptPubKey) { return 32 /* txid */ + diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 99182a3767..de0300ac0b 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -1050,15 +1050,15 @@ static RPCHelpMan gettxoutsetinfo() RPCResult{ RPCResult::Type::OBJ, "", "", { - {RPCResult::Type::NUM, "height", "The current block height (index)"}, - {RPCResult::Type::STR_HEX, "bestblock", "The hash of the block at the tip of the chain"}, + {RPCResult::Type::NUM, "height", "The block height (index) of the returned statistics"}, + {RPCResult::Type::STR_HEX, "bestblock", "The hash of the block at which these statistics are calculated"}, {RPCResult::Type::NUM, "transactions", "The number of transactions with unspent outputs"}, {RPCResult::Type::NUM, "txouts", "The number of unspent transaction outputs"}, {RPCResult::Type::NUM, "bogosize", "A meaningless metric for UTXO set size"}, {RPCResult::Type::STR_HEX, "hash_serialized_2", /* optional */ true, "The serialized hash (only present if 'hash_serialized_2' hash_type is chosen)"}, {RPCResult::Type::STR_HEX, "muhash", /* optional */ true, "The serialized hash (only present if 'muhash' hash_type is chosen)"}, {RPCResult::Type::NUM, "disk_size", "The estimated size of the chainstate on disk"}, - {RPCResult::Type::STR_AMOUNT, "total_amount", "The total amount"}, + {RPCResult::Type::STR_AMOUNT, "total_amount", "The total amount of coins in the UTXO set"}, }}, RPCExamples{ HelpExampleCli("gettxoutsetinfo", "") |