Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcwallet.cpp
Show First 20 Lines • Show All 1,476 Lines • ▼ Show 20 Lines | |||||
* @param ret The UniValue into which the result is stored. | * @param ret The UniValue into which the result is stored. | ||||
* @param filter The "is mine" filter bool. | * @param filter The "is mine" filter bool. | ||||
*/ | */ | ||||
static void ListTransactions(interfaces::Chain::Lock &locked_chain, | static void ListTransactions(interfaces::Chain::Lock &locked_chain, | ||||
CWallet *const pwallet, const CWalletTx &wtx, | CWallet *const pwallet, const CWalletTx &wtx, | ||||
int nMinDepth, bool fLong, UniValue &ret, | int nMinDepth, bool fLong, UniValue &ret, | ||||
const isminefilter &filter) { | const isminefilter &filter) { | ||||
Amount nFee; | Amount nFee; | ||||
std::string dummy_account; | |||||
std::list<COutputEntry> listReceived; | std::list<COutputEntry> listReceived; | ||||
std::list<COutputEntry> listSent; | std::list<COutputEntry> listSent; | ||||
wtx.GetAmounts(listReceived, listSent, nFee, dummy_account, filter); | wtx.GetAmounts(listReceived, listSent, nFee, filter); | ||||
bool involvesWatchonly = wtx.IsFromMe(ISMINE_WATCH_ONLY); | bool involvesWatchonly = wtx.IsFromMe(ISMINE_WATCH_ONLY); | ||||
// Sent | // Sent | ||||
if (!listSent.empty() || nFee != Amount::zero()) { | if (!listSent.empty() || nFee != Amount::zero()) { | ||||
for (const COutputEntry &s : listSent) { | for (const COutputEntry &s : listSent) { | ||||
UniValue entry(UniValue::VOBJ); | UniValue entry(UniValue::VOBJ); | ||||
if (involvesWatchonly || | if (involvesWatchonly || | ||||
▲ Show 20 Lines • Show All 3,219 Lines • Show Last 20 Lines |