From b9766c9977e58a9ebc358d9879576376e76a72b1 Mon Sep 17 00:00:00 2001 From: yancy Date: Fri, 13 Dec 2024 19:55:45 -0600 Subject: [PATCH] Remove unused variable assignment The variable is conditionally assigned toward the end of the loop and not used after. It's then set back to its default value at the beginning of the loop. --- src/wallet/coinselection.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/wallet/coinselection.cpp b/src/wallet/coinselection.cpp index cee558088f..6e6d7e053b 100644 --- a/src/wallet/coinselection.cpp +++ b/src/wallet/coinselection.cpp @@ -478,7 +478,6 @@ util::Result CoinGrinder(std::vector& utxo_pool, c // Neither adding to the current selection nor exploring the omission branch of the last selected UTXO can // find any solutions. Redirect to exploring the Omission branch of the penultimate selected UTXO (i.e. // set `next_utxo` to one after the penultimate selected, then deselect the last two selected UTXOs) - should_cut = false; deselect_last(); should_shift = true; }