Skip to content

Commit 7ca8726

Browse files
committed
wallet: fix warning: "argument name 'feerate' in comment does not match parameter name"
Happened because the "feerate=" comment was after the comma.
1 parent 8be652e commit 7ca8726

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/wallet/spend.cpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,13 @@ CoinsResult AvailableCoinsListUnspent(const CWallet& wallet, const CCoinControl*
232232
CAmount GetAvailableBalance(const CWallet& wallet, const CCoinControl* coinControl)
233233
{
234234
LOCK(wallet.cs_wallet);
235-
return AvailableCoins(wallet,
236-
coinControl,
237-
std::nullopt, /*feerate=*/
238-
1, /*nMinimumAmount*/
239-
MAX_MONEY, /*nMaximumAmount*/
240-
MAX_MONEY, /*nMinimumSumAmount*/
241-
0 /*nMaximumCount*/
242-
).total_amount;
235+
return AvailableCoins(wallet, coinControl,
236+
/*feerate=*/ std::nullopt,
237+
/*nMinimumAmount=*/ 1,
238+
/*nMaximumAmount=*/ MAX_MONEY,
239+
/*nMinimumSumAmount=*/ MAX_MONEY,
240+
/*nMaximumCount=*/ 0
241+
).total_amount;
243242
}
244243

245244
const CTxOut& FindNonChangeParentOutput(const CWallet& wallet, const CTransaction& tx, int output)

0 commit comments

Comments
 (0)