We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0be78c1 + 8b383bb commit ccdfdddCopy full SHA for ccdfddd
1 file changed
lightning-transaction-sync/src/electrum.rs
@@ -329,11 +329,11 @@ impl<L: Logger> ElectrumSyncClient<L> {
329
let mut filtered_history =
330
script_history.iter().filter(|h| h.tx_hash == **txid);
331
if let Some(history) = filtered_history.next() {
332
- let prob_conf_height = history.height as u32;
333
- if prob_conf_height <= 0 {
+ if history.height <= 0 {
334
// Skip if it's a an unconfirmed entry.
335
continue;
336
}
+ let prob_conf_height = history.height as u32;
337
let confirmed_tx = self.get_confirmed_tx(tx, prob_conf_height)?;
338
confirmed_txs.push(confirmed_tx);
339
0 commit comments