Skip to content

Commit 8471967

Browse files
committed
wallet: GroupOutput, remove unneeded "spendable" check
`AvailableCoins` already filters non-spendable coins.
1 parent a9aa041 commit 8471967

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/wallet/spend.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,6 @@ FilteredOutputGroups GroupOutputs(const CWallet& wallet,
415415
// Allowing partial spends means no grouping. Each COutput gets its own OutputGroup
416416
for (const auto& [type, outputs] : coins.coins) {
417417
for (const COutput& output : outputs) {
418-
// Skip outputs we cannot spend
419-
if (!output.spendable) continue;
420-
421418
// Get mempool info
422419
size_t ancestors, descendants;
423420
wallet.chain().getTransactionAncestry(output.outpoint.hash, ancestors, descendants);
@@ -473,9 +470,6 @@ FilteredOutputGroups GroupOutputs(const CWallet& wallet,
473470
ScriptPubKeyToOutgroup spk_to_positive_groups_map;
474471
for (const auto& [type, outs] : coins.coins) {
475472
for (const COutput& output : outs) {
476-
// Skip outputs we cannot spend
477-
if (!output.spendable) continue;
478-
479473
size_t ancestors, descendants;
480474
wallet.chain().getTransactionAncestry(output.outpoint.hash, ancestors, descendants);
481475

0 commit comments

Comments
 (0)