Skip to content

Commit 51237c9

Browse files
committed
merge bitcoin#25410: fix warning: "argument name 'feerate' in comment does not match parameter name"
1 parent 2438b9f commit 51237c9

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
@@ -216,14 +216,13 @@ CoinsResult AvailableCoinsListUnspent(const CWallet& wallet, const CCoinControl*
216216
CAmount GetAvailableBalance(const CWallet& wallet, const CCoinControl* coinControl)
217217
{
218218
LOCK(wallet.cs_wallet);
219-
return AvailableCoins(wallet,
220-
coinControl,
221-
std::nullopt, /*feerate=*/
222-
1, /*nMinimumAmount*/
223-
MAX_MONEY, /*nMaximumAmount*/
224-
MAX_MONEY, /*nMinimumSumAmount*/
225-
0 /*nMaximumCount*/
226-
).total_amount;
219+
return AvailableCoins(wallet, coinControl,
220+
/*feerate=*/ std::nullopt,
221+
/*nMinimumAmount=*/ 1,
222+
/*nMaximumAmount=*/ MAX_MONEY,
223+
/*nMinimumSumAmount=*/ MAX_MONEY,
224+
/*nMaximumCount=*/ 0
225+
).total_amount;
227226
}
228227

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

0 commit comments

Comments
 (0)