|
|
@ -3149,9 +3149,13 @@ UniValue listunspent(const JSONRPCRequest& request)
|
|
|
|
|
|
|
|
|
|
|
|
UniValue results(UniValue::VARR);
|
|
|
|
UniValue results(UniValue::VARR);
|
|
|
|
std::vector<COutput> vecOutputs;
|
|
|
|
std::vector<COutput> vecOutputs;
|
|
|
|
|
|
|
|
{
|
|
|
|
LOCK2(cs_main, pwallet->cs_wallet);
|
|
|
|
LOCK2(cs_main, pwallet->cs_wallet);
|
|
|
|
|
|
|
|
|
|
|
|
pwallet->AvailableCoins(vecOutputs, !include_unsafe, nullptr, nMinimumAmount, nMaximumAmount, nMinimumSumAmount, nMaximumCount, nMinDepth, nMaxDepth);
|
|
|
|
pwallet->AvailableCoins(vecOutputs, !include_unsafe, nullptr, nMinimumAmount, nMaximumAmount, nMinimumSumAmount, nMaximumCount, nMinDepth, nMaxDepth);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LOCK(pwallet->cs_wallet);
|
|
|
|
|
|
|
|
|
|
|
|
for (const COutput& out : vecOutputs) {
|
|
|
|
for (const COutput& out : vecOutputs) {
|
|
|
|
CTxDestination address;
|
|
|
|
CTxDestination address;
|
|
|
|
const CScript& scriptPubKey = out.tx->tx->vout[out.i].scriptPubKey;
|
|
|
|
const CScript& scriptPubKey = out.tx->tx->vout[out.i].scriptPubKey;
|
|
|
|