diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2022-10-13 16:26:53 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2022-10-29 08:51:34 -0300 |
commit | fa84df1f033a5d1a8342ea941eca0b5ef73d78e7 (patch) | |
tree | 4e380b9589321b6ca032713b8757cee3f09e5c25 /src/wallet/rpc/coins.cpp | |
parent | 61c2265629fdf11a2cc266fad54ceb0a1247bb5e (diff) | |
download | bitcoin-fa84df1f033a5d1a8342ea941eca0b5ef73d78e7.tar.xz |
scripted-diff: wallet: rename AvailableCoinsParams members to snake_case
-BEGIN VERIFY SCRIPT-
sed -i 's/nMinimumAmount/min_amount/g' $(git grep -l nMinimumAmount)
sed -i 's/nMaximumAmount/max_amount/g' $(git grep -l nMaximumAmount)
sed -i 's/nMinimumSumAmount/min_sum_amount/g' $(git grep -l nMinimumSumAmount)
sed -i 's/nMaximumCount/max_count/g' $(git grep -l nMaximumCount)
-END VERIFY SCRIPT-
Diffstat (limited to 'src/wallet/rpc/coins.cpp')
-rw-r--r-- | src/wallet/rpc/coins.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wallet/rpc/coins.cpp b/src/wallet/rpc/coins.cpp index 837162ce07..6021e4bf4f 100644 --- a/src/wallet/rpc/coins.cpp +++ b/src/wallet/rpc/coins.cpp @@ -592,7 +592,7 @@ RPCHelpMan listunspent() } CoinFilterParams filter_coins; - filter_coins.nMinimumAmount = 0; + filter_coins.min_amount = 0; if (!request.params[4].isNull()) { const UniValue& options = request.params[4].get_obj(); @@ -608,16 +608,16 @@ RPCHelpMan listunspent() true, true); if (options.exists("minimumAmount")) - filter_coins.nMinimumAmount = AmountFromValue(options["minimumAmount"]); + filter_coins.min_amount = AmountFromValue(options["minimumAmount"]); if (options.exists("maximumAmount")) - filter_coins.nMaximumAmount = AmountFromValue(options["maximumAmount"]); + filter_coins.max_amount = AmountFromValue(options["maximumAmount"]); if (options.exists("minimumSumAmount")) - filter_coins.nMinimumSumAmount = AmountFromValue(options["minimumSumAmount"]); + filter_coins.min_sum_amount = AmountFromValue(options["minimumSumAmount"]); if (options.exists("maximumCount")) - filter_coins.nMaximumCount = options["maximumCount"].getInt<int64_t>(); + filter_coins.max_count = options["maximumCount"].getInt<int64_t>(); if (options.exists("include_immature_coinbase")) { filter_coins.include_immature_coinbase = options["include_immature_coinbase"].get_bool(); |