Rename ListTransactions filter variable
Suggested by MeshCollider <dobsonsa68@gmail.com> in https://github.com/bitcoin/bitcoin/pull/14411#discussion_r232134086
This commit is contained in:
parent
65b740f92b
commit
da427dbd48
1 changed files with 9 additions and 9 deletions
|
@ -1266,16 +1266,16 @@ static void MaybePushAddress(UniValue & entry, const CTxDestination &dest)
|
||||||
* @param nMinDepth The minimum confirmation depth.
|
* @param nMinDepth The minimum confirmation depth.
|
||||||
* @param fLong Whether to include the JSON version of the transaction.
|
* @param fLong Whether to include the JSON version of the transaction.
|
||||||
* @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_ismine The "is mine" filter flags.
|
||||||
* @param filter_label Optional label string to filter incoming transactions.
|
* @param filter_label Optional label string to filter incoming transactions.
|
||||||
*/
|
*/
|
||||||
static void ListTransactions(interfaces::Chain::Lock& locked_chain, CWallet* const pwallet, const CWalletTx& wtx, int nMinDepth, bool fLong, UniValue& ret, const isminefilter& filter, const std::string* filter_label)
|
static void ListTransactions(interfaces::Chain::Lock& locked_chain, CWallet* const pwallet, const CWalletTx& wtx, int nMinDepth, bool fLong, UniValue& ret, const isminefilter& filter_ismine, const std::string* filter_label)
|
||||||
{
|
{
|
||||||
CAmount nFee;
|
CAmount nFee;
|
||||||
std::list<COutputEntry> listReceived;
|
std::list<COutputEntry> listReceived;
|
||||||
std::list<COutputEntry> listSent;
|
std::list<COutputEntry> listSent;
|
||||||
|
|
||||||
wtx.GetAmounts(listReceived, listSent, nFee, filter);
|
wtx.GetAmounts(listReceived, listSent, nFee, filter_ismine);
|
||||||
|
|
||||||
bool involvesWatchonly = wtx.IsFromMe(ISMINE_WATCH_ONLY);
|
bool involvesWatchonly = wtx.IsFromMe(ISMINE_WATCH_ONLY);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue