Update to listunspent cli command (#1254)

* Add missing description for listunspent help message.

* Add ps_round (PrivateSend Round) in listunspent result

* s/round/rounds/
This commit is contained in:
TheLazieR Yip 2017-01-11 06:06:17 +07:00 committed by UdjinM6
parent 9114ef7930
commit a42b375a05

View File

@ -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);
}