File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -502,7 +502,7 @@ where
502502
503503 // get outpoint spend-statuses
504504 let mut outpoints = outpoints. into_iter ( ) ;
505- let mut missing_txs = Vec :: < Txid > :: with_capacity ( outpoints. len ( ) ) ;
505+ let mut missing_txs = HashSet :: < Txid > :: with_capacity ( outpoints. len ( ) ) ;
506506 loop {
507507 let handles = outpoints
508508 . by_ref ( )
@@ -523,7 +523,7 @@ where
523523 None => continue ,
524524 } ;
525525 if !inserted_txs. contains ( & spend_txid) {
526- missing_txs. push ( spend_txid) ;
526+ missing_txs. insert ( spend_txid) ;
527527 }
528528 if let Some ( spend_status) = op_status. status {
529529 insert_anchor_or_seen_at_from_status (
Original file line number Diff line number Diff line change @@ -458,7 +458,7 @@ fn fetch_txs_with_outpoints<I: IntoIterator<Item = OutPoint>>(
458458
459459 // get outpoint spend-statuses
460460 let mut outpoints = outpoints. into_iter ( ) ;
461- let mut missing_txs = Vec :: < Txid > :: with_capacity ( outpoints. len ( ) ) ;
461+ let mut missing_txs = HashSet :: < Txid > :: with_capacity ( outpoints. len ( ) ) ;
462462 loop {
463463 let handles = outpoints
464464 . by_ref ( )
@@ -484,7 +484,7 @@ fn fetch_txs_with_outpoints<I: IntoIterator<Item = OutPoint>>(
484484 None => continue ,
485485 } ;
486486 if !inserted_txs. contains ( & spend_txid) {
487- missing_txs. push ( spend_txid) ;
487+ missing_txs. insert ( spend_txid) ;
488488 }
489489 if let Some ( spend_status) = op_status. status {
490490 insert_anchor_or_seen_at_from_status (
You can’t perform that action at this time.
0 commit comments