rust-lightning/lightning-transaction-sync
Elias Rohrer b71c6e2f67
Dedup confirmed_txs Vec
Previously, we would just push to the `confirmed_txs` `Vec`, leading to
redundant `Confirm::transactions_confirmed` calls, especially now that
we re-confirm previously disconnected spends.

Here, we ensure that we don't push additional `ConfirmedTx` entries if
already one with matching `Txid` is present. This not only gets rid of
the spurious `transactions_confirmed` calls (which are harmless), but
more importantly saves us from issuing unnecessary network calls, which
improves latency.
2024-03-21 17:41:26 +01:00
..
src Dedup confirmed_txs Vec 2024-03-21 17:41:26 +01:00
tests Disable lightning-transaction-sync integration tests on Windows 2024-02-12 10:42:07 +01:00
Cargo.toml Disable lightning-transaction-sync integration tests on Windows 2024-02-12 10:42:07 +01:00