Skip to content

Commit 15c1541

Browse files
committed
wallet: Fix output extraction when we own multiple outputs
When we already know about an output we would stop scanning the remaining outputs. Known outputs happen whenever we extracted from our own transactions and then extracted again from blocks. We would not update if the first update fails. Signed-off-by: Christian Decker <[email protected]>
1 parent f54c226 commit 15c1541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wallet/wallet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ int wallet_extract_owned_outputs(struct wallet *w, const struct bitcoin_tx *tx,
10541054
if (block)
10551055
wallet_output_confirm(w, &utxo->txid, utxo->outnum, block->height);
10561056
tal_free(utxo);
1057-
return -1;
1057+
continue;
10581058
}
10591059
outpointfilter_add(w->owned_outpoints, &utxo->txid, utxo->outnum);
10601060

0 commit comments

Comments
 (0)