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:
Christian Decker
2018-03-02 15:18:20 +01:00
parent ae30942e3f
commit 5a1b4b91e2

View File

@@ -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);