@@ -270,7 +270,7 @@ where
270270 let mut confirmed_txs: Vec < ConfirmedTx > = Vec :: new ( ) ;
271271
272272 for txid in & sync_state. watched_transactions {
273- if confirmed_txs. iter ( ) . any ( |ctx| ctx. tx . txid ( ) == * txid) {
273+ if confirmed_txs. iter ( ) . any ( |ctx| ctx. txid == * txid) {
274274 continue ;
275275 }
276276 if let Some ( confirmed_tx) = maybe_await ! ( self . get_confirmed_tx( & txid, None , None ) ) ? {
@@ -284,7 +284,7 @@ where
284284 {
285285 if let Some ( spending_txid) = output_status. txid {
286286 if let Some ( spending_tx_status) = output_status. status {
287- if confirmed_txs. iter ( ) . any ( |ctx| ctx. tx . txid ( ) == spending_txid) {
287+ if confirmed_txs. iter ( ) . any ( |ctx| ctx. txid == spending_txid) {
288288 if spending_tx_status. confirmed {
289289 // Skip inserting duplicate ConfirmedTx entry
290290 continue ;
@@ -342,14 +342,15 @@ where
342342 // unwrap() safety: len() > 0 is checked above
343343 let pos = * indexes. first ( ) . unwrap ( ) as usize ;
344344 if let Some ( tx) = maybe_await ! ( self . client. get_tx( & txid) ) ? {
345+ let txid = tx. txid ( ) ;
345346 if let Some ( block_height) = known_block_height {
346347 // We can take a shortcut here if a previous call already gave us the height.
347- return Ok ( Some ( ConfirmedTx { tx, block_header, pos, block_height } ) ) ;
348+ return Ok ( Some ( ConfirmedTx { tx, txid , block_header, pos, block_height } ) ) ;
348349 }
349350
350351 let block_status = maybe_await ! ( self . client. get_block_status( & block_hash) ) ?;
351352 if let Some ( block_height) = block_status. height {
352- return Ok ( Some ( ConfirmedTx { tx, block_header, pos, block_height } ) ) ;
353+ return Ok ( Some ( ConfirmedTx { tx, txid , block_header, pos, block_height } ) ) ;
353354 } else {
354355 // If any previously-confirmed block suddenly is no longer confirmed, we found
355356 // an inconsistency and should start over.
0 commit comments