From 5a1b4b91e250fda503ae982db04b53890623f08c Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 2 Mar 2018 15:18:20 +0100 Subject: [PATCH] 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 --- wallet/wallet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallet/wallet.c b/wallet/wallet.c index 4ef77c6c2..d507822da 100644 --- a/wallet/wallet.c +++ b/wallet/wallet.c @@ -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);