Skip to content

Commit

Permalink
Merge #1753: [Trivial] [RPC] Fix listcoldutxos help text
Browse files Browse the repository at this point in the history
611a30a Fix listcoldutxos help text (JSKitty)

Pull request description:

  Some of the example "Results" in the help command of `listcoldutxos` were misleading, such as "whitelisted" showing as a string instead of a boolean, cold-staker/owner showing as "n", often associated with a numerical value, and "txidn" showing as a "string" even though it's the index number of the UTXO - This PR simply corrects them to what they should be.

ACKs for top commit:
  furszy:
    utACK 611a30a with a minor nit.
  random-zebra:
    utACK 611a30a with the same nit as furszy.
  random-zebra:
    Well... guess we can merge this as is for now. utACK 611a30a

Tree-SHA512: ce4dec20bb8a88d1707718535ee030b05de0b50cc90d20c7b73ac531aa92b9fffefa7f25f618473fad8ae0d59035bca916ea4db5b38a205c7106e79a9e449dc3
  • Loading branch information
random-zebra committed Aug 5, 2020
2 parents 32a2e8a + 611a30a commit e288a45
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2213,12 +2213,12 @@ UniValue listcoldutxos(const JSONRPCRequest& request)
"[\n"
" {\n"
" \"txid\" : \"true\", (string) The transaction id of the P2CS utxo\n"
" \"txidn\" : \"accountname\", (string) The output number of the P2CS utxo\n"
" \"amount\" : x.xxx, (numeric) The amount of the P2CS utxo\n"
" \"confirmations\" : n (numeric) The number of confirmations of the P2CS utxo\n"
" \"cold-staker\" : n (string) The cold-staker address of the P2CS utxo\n"
" \"coin-owner\" : n (string) The coin-owner address of the P2CS utxo\n"
" \"whitelisted\" : n (string) \"true\"/\"false\" coin-owner in delegator whitelist\n"
" \"txidn\" : n (numeric) The output number of the P2CS utxo\n"
" \"amount\" : x.xxx, (numeric) The amount of the P2CS utxo\n"
" \"confirmations\" : n (numeric) The number of confirmations of the P2CS utxo\n"
" \"cold-staker\" : \"address\" (string) The cold-staker address of the P2CS utxo\n"
" \"coin-owner\" : \"address\" (string) The coin-owner address of the P2CS utxo\n"
" \"whitelisted\" : \"true\" (boolean) \"true\"/\"false\" coin-owner in delegator whitelist\n"
" }\n"
" ,...\n"
"]\n"
Expand Down

0 comments on commit e288a45

Please sign in to comment.