Skip to content

Commit 746e8d5

Browse files
committed
f s/filtered/history/
1 parent 6a23323 commit 746e8d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning-transaction-sync/src/electrum.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ where
236236
for (i, script_history) in tx_results.iter().enumerate() {
237237
let (txid, tx) = &watched_txs[i];
238238
let mut filtered_history = script_history.iter().filter(|h| h.tx_hash == **txid);
239-
if let Some(filtered) = filtered_history.next()
239+
if let Some(history) = filtered_history.next()
240240
{
241-
let prob_conf_height = filtered.height as u32;
241+
let prob_conf_height = history.height as u32;
242242
let confirmed_tx = self.get_confirmed_tx(tx, prob_conf_height)?;
243243
confirmed_txs.push(confirmed_tx);
244244
}
@@ -317,10 +317,10 @@ where
317317
Ok(tx) => {
318318
if let Some(tx_out) = tx.output.first() {
319319
let script_history = self.client.script_get_history(&tx_out.script_pubkey)?;
320-
if let Some(filtered) = script_history.iter()
320+
if let Some(history) = script_history.iter()
321321
.filter(|h| h.tx_hash == txid).max_by_key(|x| x.height)
322322
{
323-
let prob_conf_height = filtered.height;
323+
let prob_conf_height = history.height;
324324
let block_header = self.client.block_header(
325325
prob_conf_height as usize)?;
326326
if block_header.block_hash() == block_hash {

0 commit comments

Comments
 (0)