From a42b375a05c969365b2b94adef8bf637c0da610e Mon Sep 17 00:00:00 2001 From: TheLazieR Yip Date: Wed, 11 Jan 2017 06:06:17 +0700 Subject: [PATCH] Update to listunspent cli command (#1254) * Add missing description for listunspent help message. * Add ps_round (PrivateSend Round) in listunspent result * s/round/rounds/ --- src/wallet/rpcwallet.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 19ad6c31a..4600546cd 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -2508,6 +2508,8 @@ UniValue listunspent(const UniValue& params, bool fHelp) " \"scriptPubKey\" : \"key\", (string) the script key\n" " \"amount\" : x.xxx, (numeric) the transaction amount in " + CURRENCY_UNIT + "\n" " \"confirmations\" : n (numeric) The number of confirmations\n" + " \"ps_rounds\" : n (numeric) The number of PS round\n" + " \"spendable\" : true|false (boolean) True if spendable\n" " }\n" " ,...\n" "]\n" @@ -2583,6 +2585,7 @@ UniValue listunspent(const UniValue& params, bool fHelp) } entry.push_back(Pair("amount",ValueFromAmount(nValue))); entry.push_back(Pair("confirmations",out.nDepth)); + entry.push_back(Pair("ps_rounds", pwalletMain->GetInputPrivateSendRounds(CTxIn(out.tx->GetHash(), out.i)))); entry.push_back(Pair("spendable", out.fSpendable)); results.push_back(entry); }