File tree 1 file changed +4
-4
lines changed
lightning-transaction-sync/src
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -236,9 +236,9 @@ where
236
236
for ( i, script_history) in tx_results. iter ( ) . enumerate ( ) {
237
237
let ( txid, tx) = & watched_txs[ i] ;
238
238
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 ( )
240
240
{
241
- let prob_conf_height = filtered . height as u32 ;
241
+ let prob_conf_height = history . height as u32 ;
242
242
let confirmed_tx = self . get_confirmed_tx ( tx, prob_conf_height) ?;
243
243
confirmed_txs. push ( confirmed_tx) ;
244
244
}
@@ -317,10 +317,10 @@ where
317
317
Ok ( tx) => {
318
318
if let Some ( tx_out) = tx. output . first ( ) {
319
319
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 ( )
321
321
. filter ( |h| h. tx_hash == txid) . max_by_key ( |x| x. height )
322
322
{
323
- let prob_conf_height = filtered . height ;
323
+ let prob_conf_height = history . height ;
324
324
let block_header = self . client . block_header (
325
325
prob_conf_height as usize ) ?;
326
326
if block_header. block_hash ( ) == block_hash {
You can’t perform that action at this time.
0 commit comments