Skip to content

fix(lightning): fix orphaned channels migration#480

Merged
pwltr merged 1 commit intomasterfrom
fix/orphaned-channels
Mar 6, 2026
Merged

fix(lightning): fix orphaned channels migration#480
pwltr merged 1 commit intomasterfrom
fix/orphaned-channels

Conversation

@pwltr
Copy link
Contributor

@pwltr pwltr commented Mar 6, 2026

Description

Don't overwrite channel manager, we only need the monitors to sweep the funds from force closed channels

Screenshot / Video

Simulator.Screen.Recording.-.iPhone.17.-.2026-03-06.at.10.55.03.mov

logs.txt

Repro steps

  1. Install RN app (master)
  2. Open channel
  3. Backup seed
  4. Delete RN app
  5. Install native app (modified: fail to retrieve channel monitor & disable orphaned channel recovery)
  6. Restore from seed (channel is lost w/o sweep)
  7. Open new channel
  8. Update app (master)
  9. new channel force closed

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: orphaned channel recovery overwrites active ChannelManager with stale RN backup, causing crash on every launch

4 participants