File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lightning-transaction-sync/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments