Browse Source

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>
ppa-0.6.1
Christian Decker 7 years ago
parent
commit
5a1b4b91e2
  1. 2
      wallet/wallet.c

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

Loading…
Cancel
Save