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