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:
parent
9114ef7930
commit
a42b375a05
@ -2508,6 +2508,8 @@ UniValue listunspent(const UniValue& params, bool fHelp)
|
|||||||
" \"scriptPubKey\" : \"key\", (string) the script key\n"
|
" \"scriptPubKey\" : \"key\", (string) the script key\n"
|
||||||
" \"amount\" : x.xxx, (numeric) the transaction amount in " + CURRENCY_UNIT + "\n"
|
" \"amount\" : x.xxx, (numeric) the transaction amount in " + CURRENCY_UNIT + "\n"
|
||||||
" \"confirmations\" : n (numeric) The number of confirmations\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"
|
" ,...\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("amount",ValueFromAmount(nValue)));
|
||||||
entry.push_back(Pair("confirmations",out.nDepth));
|
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));
|
entry.push_back(Pair("spendable", out.fSpendable));
|
||||||
results.push_back(entry);
|
results.push_back(entry);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user