mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
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 <decker.christian@gmail.com>
This commit is contained in:
@@ -1054,7 +1054,7 @@ int wallet_extract_owned_outputs(struct wallet *w, const struct bitcoin_tx *tx,
|
||||
if (block)
|
||||
wallet_output_confirm(w, &utxo->txid, utxo->outnum, block->height);
|
||||
tal_free(utxo);
|
||||
return -1;
|
||||
continue;
|
||||
}
|
||||
outpointfilter_add(w->owned_outpoints, &utxo->txid, utxo->outnum);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user