|
26 | 26 | - Switched from forked rust-lightning (`ovitrif/rust-lightning#0.2-electrum-fix`) back to official |
27 | 27 | upstream crates.io releases. The Electrum sync fix (PR #4341) is now in upstream |
28 | 28 | `lightning-transaction-sync` v0.2.1. Also picks up `lightning` v0.2.2 fixes. |
| 29 | +- Fixed FS→KV channel data migration blindly overwriting newer state. The migration now skips |
| 30 | + writing a channel monitor when the KV store already holds one with a newer or equal `update_id`, |
| 31 | + and skips the channel manager when one already exists. Read or deserialization failures fail-closed |
| 32 | + to prevent silent data loss. |
29 | 33 |
|
30 | 34 | ## Synonym Fork Additions |
31 | 35 |
|
32 | | -- Fixed channel monitor migration from filesystem store to KV store overwriting newer state. |
33 | | - During FS→KV migration, the code now checks if the KV store already has a channel monitor |
34 | | - with a newer `update_id` before writing, preventing stale migration data from overwriting |
35 | | - current state on repeated migrations or restarts. Errors reading or deserializing existing |
36 | | - monitors now fail-closed (abort migration) to avoid silent data loss. |
37 | 36 | - Added `connection_timeout_secs` field to `ElectrumSyncConfig` (default: 10 s). This bounds |
38 | 37 | Electrum socket operations for both the BDK on-chain and LDK tx-sync clients, preventing Tokio's |
39 | 38 | blocking thread pool from being exhausted by threads stuck on dead sockets under total packet |
40 | 39 | loss (e.g. a captive portal on iOS). Set to `0` to disable; values above 255 are capped to |
41 | 40 | 255 and a warning is logged. |
42 | 41 | **Breaking change:** existing struct-literal construction of `ElectrumSyncConfig` must add the |
43 | 42 | new field or switch to `ElectrumSyncConfig { .., ..Default::default() }`. |
44 | | - |
45 | 43 | - Added `OnchainPayment::calculate_send_all_fee()` to preview the fee for a drain / send-all |
46 | 44 | transaction before broadcasting (fee-calculation counterpart of `send_all_to_address`) |
47 | 45 | - Added runtime APIs for dynamic address type management: |
|
0 commit comments