Track spent `WatchedOutput`s and re-add if unconfirmed
[rust-lightning] / lightning-transaction-sync / src / electrum.rs
index d0c8afef77e3161ec191f41a0ceae4aa5eb8efe0..efffafb14c6f20acff5892a72c1d53144b122600 100644 (file)
@@ -157,6 +157,9 @@ where
                                        for c in &confirmables {
                                                c.best_block_updated(&tip_header, tip_height);
                                        }
+
+                                       // Prune any sufficiently confirmed output spends
+                                       sync_state.prune_output_spends(tip_height);
                                }
 
                                match self.get_confirmed_transactions(&sync_state) {