Skip to content

Commit da427db

Browse files
committed
Rename ListTransactions filter variable
Suggested by MeshCollider <[email protected]> in bitcoin/bitcoin#14411 (comment)
1 parent 65b740f commit da427db

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,21 +1261,21 @@ static void MaybePushAddress(UniValue & entry, const CTxDestination &dest)
12611261
/**
12621262
* List transactions based on the given criteria.
12631263
*
1264-
* @param pwallet The wallet.
1265-
* @param wtx The wallet transaction.
1266-
* @param nMinDepth The minimum confirmation depth.
1267-
* @param fLong Whether to include the JSON version of the transaction.
1268-
* @param ret The UniValue into which the result is stored.
1269-
* @param filter The "is mine" filter bool.
1270-
* @param filter_label Optional label string to filter incoming transactions.
1264+
* @param pwallet The wallet.
1265+
* @param wtx The wallet transaction.
1266+
* @param nMinDepth The minimum confirmation depth.
1267+
* @param fLong Whether to include the JSON version of the transaction.
1268+
* @param ret The UniValue into which the result is stored.
1269+
* @param filter_ismine The "is mine" filter flags.
1270+
* @param filter_label Optional label string to filter incoming transactions.
12711271
*/
1272-
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)
1272+
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)
12731273
{
12741274
CAmount nFee;
12751275
std::list<COutputEntry> listReceived;
12761276
std::list<COutputEntry> listSent;
12771277

1278-
wtx.GetAmounts(listReceived, listSent, nFee, filter);
1278+
wtx.GetAmounts(listReceived, listSent, nFee, filter_ismine);
12791279

12801280
bool involvesWatchonly = wtx.IsFromMe(ISMINE_WATCH_ONLY);
12811281

0 commit comments

Comments
 (0)