diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2022-06-18 10:26:50 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2022-06-18 12:45:27 -0300 |
commit | 7ca8726f6355f8738e9c49533d028123051a624b (patch) | |
tree | 9c71d663b4a43fe16999f358bdb8737938322b2c | |
parent | 8be652e43964329c1f2dadd676916b53e5c40974 (diff) |
wallet: fix warning: "argument name 'feerate' in comment does not match parameter name"
Happened because the "feerate=" comment was after the comma.
-rw-r--r-- | src/wallet/spend.cpp | 15 |
1 files 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) |