From 8471967d7be0804665fdf94a9a841b1c56598b3c Mon Sep 17 00:00:00 2001 From: furszy Date: Sat, 4 Mar 2023 11:23:11 -0300 Subject: [PATCH] wallet: GroupOutput, remove unneeded "spendable" check `AvailableCoins` already filters non-spendable coins. --- src/wallet/spend.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/wallet/spend.cpp b/src/wallet/spend.cpp index 238422dc891..359fc78df17 100644 --- a/src/wallet/spend.cpp +++ b/src/wallet/spend.cpp @@ -415,9 +415,6 @@ FilteredOutputGroups GroupOutputs(const CWallet& wallet, // Allowing partial spends means no grouping. Each COutput gets its own OutputGroup for (const auto& [type, outputs] : coins.coins) { for (const COutput& output : outputs) { - // Skip outputs we cannot spend - if (!output.spendable) continue; - // Get mempool info size_t ancestors, descendants; wallet.chain().getTransactionAncestry(output.outpoint.hash, ancestors, descendants); @@ -473,9 +470,6 @@ FilteredOutputGroups GroupOutputs(const CWallet& wallet, ScriptPubKeyToOutgroup spk_to_positive_groups_map; for (const auto& [type, outs] : coins.coins) { for (const COutput& output : outs) { - // Skip outputs we cannot spend - if (!output.spendable) continue; - size_t ancestors, descendants; wallet.chain().getTransactionAncestry(output.outpoint.hash, ancestors, descendants);