Repository navigation
Commit 8647a56
committed
node: retain peer after local force-close
When we initiate a force-close via `Node::force_close_channel`, the
remote peer may be unreachable or, in the case of certain LND
versions, mishandle the force-close error message. Keeping the peer
in the store lets the background reconnection task continue firing
and gives `channel_reestablish` a chance to drive recovery once the
peer is reachable again. The peer is now only dropped from
`close_channel_internal` on cooperative close; users who want to
forget a force-closed peer must call `Node::disconnect`.
Extend `do_channel_full_cycle` to assert the new retention behavior
in both the force-close and cooperative-close branches.1 parent 96bdc06 commit 8647a56
2 files changed
Lines changed: 24 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1859 | 1859 | | |
1860 | 1860 | | |
1861 | 1861 | | |
1862 | | - | |
1863 | | - | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
1864 | 1872 | | |
1865 | 1873 | | |
1866 | 1874 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1592 | 1592 | | |
1593 | 1593 | | |
1594 | 1594 | | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
1595 | 1609 | | |
1596 | 1610 | | |
1597 | 1611 | | |
| |||
0 commit comments