File tree 1 file changed +2
-4
lines changed
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};
16
16
17
17
use bitcoin:: { BlockHash , Script , Transaction , Txid } ;
18
18
19
+ use std:: collections:: HashSet ;
19
20
use std:: sync:: { Arc , Mutex } ;
20
21
21
22
/// The minimum feerate we are allowed to send, as specify by LDK.
@@ -101,15 +102,12 @@ where
101
102
102
103
// Check in the current queue, as well as in registered transactions leftover from
103
104
// previous iterations.
104
- let mut registered_txs: Vec < Txid > = locked_watched_transactions
105
+ let registered_txs: HashSet < Txid > = locked_watched_transactions
105
106
. iter ( )
106
107
. chain ( locked_queued_transactions. iter ( ) )
107
108
. cloned ( )
108
109
. collect ( ) ;
109
110
110
- registered_txs. sort_unstable_by ( |txid1, txid2| txid1. cmp ( & txid2) ) ;
111
- registered_txs. dedup_by ( |txid1, txid2| txid1. eq ( & txid2) ) ;
112
-
113
111
// Remember all registered but unconfirmed transactions for future processing.
114
112
let mut unconfirmed_registered_txs = Vec :: new ( ) ;
115
113
You can’t perform that action at this time.
0 commit comments