mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-08 12:19:07 +02:00
wallet: GroupOutput, remove unneeded "spendable" check
`AvailableCoins` already filters non-spendable coins.
This commit is contained in:
parent
a9aa04183c
commit
8471967d7b
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user