We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29a5d57 commit 073a389Copy full SHA for 073a389
lightning-transaction-sync/src/esplora.rs
@@ -376,15 +376,13 @@ impl FilterQueue {
376
if !self.transactions.is_empty() {
377
pending_registrations = true;
378
379
- sync_state.watched_transactions.extend(self.transactions.iter());
380
- self.transactions = HashSet::new();
+ sync_state.watched_transactions.extend(self.transactions.drain());
381
}
382
383
if !self.outputs.is_empty() {
384
385
386
- sync_state.watched_outputs.extend(self.outputs.iter().cloned());
387
- self.outputs = HashSet::new();
+ sync_state.watched_outputs.extend(self.outputs.drain());
388
389
pending_registrations
390
0 commit comments