File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ use bdk::{SignOptions, SyncOptions};
1616
1717use bitcoin:: { BlockHash , Script , Transaction , Txid } ;
1818
19+ use std:: collections:: HashSet ;
1920use std:: sync:: { Arc , Mutex } ;
2021
2122/// The minimum feerate we are allowed to send, as specify by LDK.
@@ -101,15 +102,12 @@ where
101102
102103 // Check in the current queue, as well as in registered transactions leftover from
103104 // previous iterations.
104- let mut registered_txs: Vec < Txid > = locked_watched_transactions
105+ let registered_txs: HashSet < Txid > = locked_watched_transactions
105106 . iter ( )
106107 . chain ( locked_queued_transactions. iter ( ) )
107108 . cloned ( )
108109 . collect ( ) ;
109110
110- registered_txs. sort_unstable_by ( |txid1, txid2| txid1. cmp ( & txid2) ) ;
111- registered_txs. dedup_by ( |txid1, txid2| txid1. eq ( & txid2) ) ;
112-
113111 // Remember all registered but unconfirmed transactions for future processing.
114112 let mut unconfirmed_registered_txs = Vec :: new ( ) ;
115113
You can’t perform that action at this time.
0 commit comments