Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcwallet.cpp
Show First 20 Lines • Show All 2,827 Lines • ▼ Show 20 Lines | static UniValue listlockunspent(const Config &config, | ||||
LOCK2(cs_main, pwallet->cs_wallet); | LOCK2(cs_main, pwallet->cs_wallet); | ||||
std::vector<COutPoint> vOutpts; | std::vector<COutPoint> vOutpts; | ||||
pwallet->ListLockedCoins(vOutpts); | pwallet->ListLockedCoins(vOutpts); | ||||
UniValue ret(UniValue::VARR); | UniValue ret(UniValue::VARR); | ||||
for (COutPoint &outpt : vOutpts) { | for (COutPoint &output : vOutpts) { | ||||
UniValue o(UniValue::VOBJ); | UniValue o(UniValue::VOBJ); | ||||
o.push_back(Pair("txid", outpt.hash.GetHex())); | o.push_back(Pair("txid", output.GetTxId().GetHex())); | ||||
o.push_back(Pair("vout", (int)outpt.n)); | o.push_back(Pair("vout", int(output.GetN()))); | ||||
ret.push_back(o); | ret.push_back(o); | ||||
} | } | ||||
return ret; | return ret; | ||||
} | } | ||||
static UniValue settxfee(const Config &config, const JSONRPCRequest &request) { | static UniValue settxfee(const Config &config, const JSONRPCRequest &request) { | ||||
CWallet *const pwallet = GetWalletForJSONRPCRequest(request); | CWallet *const pwallet = GetWalletForJSONRPCRequest(request); | ||||
▲ Show 20 Lines • Show All 683 Lines • Show Last 20 Lines |