Skip to content

Commit ccdfddd

Browse files
authored
Merge pull request #4590 from tnull/2026-05-fix-electrum-comparison
Fix signed comparison in `ElectrumClient`
2 parents 0be78c1 + 8b383bb commit ccdfddd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lightning-transaction-sync/src/electrum.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,11 @@ impl<L: Logger> ElectrumSyncClient<L> {
329329
let mut filtered_history =
330330
script_history.iter().filter(|h| h.tx_hash == **txid);
331331
if let Some(history) = filtered_history.next() {
332-
let prob_conf_height = history.height as u32;
333-
if prob_conf_height <= 0 {
332+
if history.height <= 0 {
334333
// Skip if it's a an unconfirmed entry.
335334
continue;
336335
}
336+
let prob_conf_height = history.height as u32;
337337
let confirmed_tx = self.get_confirmed_tx(tx, prob_conf_height)?;
338338
confirmed_txs.push(confirmed_tx);
339339
}

0 commit comments

Comments
 (0)