|
|
|
@ -1117,6 +1117,7 @@ void ListTransactions(const CWalletTx& wtx, const string& strAccount, int nMinDe
|
|
|
|
|
wtx.GetAmounts(listReceived, listSent, nFee, strSentAccount);
|
|
|
|
|
|
|
|
|
|
bool fAllAccounts = (strAccount == string("*"));
|
|
|
|
|
bool involvesWatchonly = wtx.IsFromMe(MINE_WATCH_ONLY);
|
|
|
|
|
|
|
|
|
|
// Sent
|
|
|
|
|
if ((!listSent.empty() || nFee != 0) && (fAllAccounts || strAccount == strSentAccount))
|
|
|
|
@ -1124,6 +1125,8 @@ void ListTransactions(const CWalletTx& wtx, const string& strAccount, int nMinDe
|
|
|
|
|
BOOST_FOREACH(const PAIRTYPE(CTxDestination, int64_t)& s, listSent)
|
|
|
|
|
{
|
|
|
|
|
Object entry;
|
|
|
|
|
if(involvesWatchonly || (::IsMine(*pwalletMain, s.first) & MINE_WATCH_ONLY))
|
|
|
|
|
entry.push_back(Pair("involvesWatchonly", true));
|
|
|
|
|
entry.push_back(Pair("account", strSentAccount));
|
|
|
|
|
MaybePushAddress(entry, s.first);
|
|
|
|
|
entry.push_back(Pair("category", "send"));
|
|
|
|
@ -1146,6 +1149,8 @@ void ListTransactions(const CWalletTx& wtx, const string& strAccount, int nMinDe
|
|
|
|
|
if (fAllAccounts || (account == strAccount))
|
|
|
|
|
{
|
|
|
|
|
Object entry;
|
|
|
|
|
if(involvesWatchonly || (::IsMine(*pwalletMain, r.first) & MINE_WATCH_ONLY))
|
|
|
|
|
entry.push_back(Pair("involvesWatchonly", true));
|
|
|
|
|
entry.push_back(Pair("account", account));
|
|
|
|
|
MaybePushAddress(entry, r.first);
|
|
|
|
|
if (wtx.IsCoinBase())
|
|
|
|
|