From 7ca8726f6355f8738e9c49533d028123051a624b Mon Sep 17 00:00:00 2001 From: furszy Date: Sat, 18 Jun 2022 10:26:50 -0300 Subject: [PATCH] wallet: fix warning: "argument name 'feerate' in comment does not match parameter name" Happened because the "feerate=" comment was after the comma. --- src/wallet/spend.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/wallet/spend.cpp b/src/wallet/spend.cpp index 60a28a22e9..4547dc4133 100644 --- a/src/wallet/spend.cpp +++ b/src/wallet/spend.cpp @@ -232,14 +232,13 @@ CoinsResult AvailableCoinsListUnspent(const CWallet& wallet, const CCoinControl* CAmount GetAvailableBalance(const CWallet& wallet, const CCoinControl* coinControl) { LOCK(wallet.cs_wallet); - return AvailableCoins(wallet, - coinControl, - std::nullopt, /*feerate=*/ - 1, /*nMinimumAmount*/ - MAX_MONEY, /*nMaximumAmount*/ - MAX_MONEY, /*nMinimumSumAmount*/ - 0 /*nMaximumCount*/ - ).total_amount; + return AvailableCoins(wallet, coinControl, + /*feerate=*/ std::nullopt, + /*nMinimumAmount=*/ 1, + /*nMaximumAmount=*/ MAX_MONEY, + /*nMinimumSumAmount=*/ MAX_MONEY, + /*nMaximumCount=*/ 0 + ).total_amount; } const CTxOut& FindNonChangeParentOutput(const CWallet& wallet, const CTransaction& tx, int output)