[wallet] Restore ability to list incoming transactions by label

Backport of PR 14411 to v0.17.

This change partially reverts #13075 and #14023.

Fixes #14382
This commit is contained in:
Russell Yanofsky 2018-10-06 00:48:23 -04:00 committed by Anthony Fieroni
parent afb4aabe3b
commit c33bab30d2

View file

@ -1293,6 +1293,12 @@ static void ListTransactions(interfaces::Chain::Lock& locked_chain, CWallet* con
bool involvesWatchonly = wtx.IsFromMe(ISMINE_WATCH_ONLY);
bool list_sent = fAllAccounts;
if (IsDeprecatedRPCEnabled("accounts")) {
list_sent |= strAccount == strSentAccount;
}
// Sent
if (!filter_label)
{