diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2022-02-28 12:07:57 +0000 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2022-03-14 12:20:08 +0000 |
commit | def43a4d888b4a21c082404d1b25707c481d7625 (patch) | |
tree | 943249c92f9e9154b4653c2c05e935ddd1be14fa /src/wallet/coinselection.cpp | |
parent | 1dd092367789749527777ac2b256e639f5706584 (diff) | |
download | bitcoin-def43a4d888b4a21c082404d1b25707c481d7625.tar.xz |
refactor: Rename i to curr_try in SelectCoinsBnB
Clarifies purpose and removes name collisions with other indicies.
Diffstat (limited to 'src/wallet/coinselection.cpp')
-rw-r--r-- | src/wallet/coinselection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/coinselection.cpp b/src/wallet/coinselection.cpp index b3d7c685dd..c63804a7a9 100644 --- a/src/wallet/coinselection.cpp +++ b/src/wallet/coinselection.cpp @@ -87,7 +87,7 @@ std::optional<SelectionResult> SelectCoinsBnB(std::vector<OutputGroup>& utxo_poo CAmount best_waste = MAX_MONEY; // Depth First search loop for choosing the UTXOs - for (size_t i = 0, utxo_pool_index = 0; i < TOTAL_TRIES; ++i, ++utxo_pool_index) { + for (size_t curr_try = 0, utxo_pool_index = 0; curr_try < TOTAL_TRIES; ++curr_try, ++utxo_pool_index) { // Conditions for starting a backtrack bool backtrack = false; if (curr_value + curr_available_value < selection_target || // Cannot possibly reach target with the amount remaining in the curr_available_value. |