Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store disabled channel update when offline (#2307)
When a channel is offline and we want to relay an HTLC through it, we emit a new `channel_update` with the disable bit set (unless it was already disabled). We previously didn't persist our internal state with this new `channel_update`, which created the following issue: if eclair is restarted before the channel comes back online, eclair would only try to rebroadcast the previous `channel_update` which has a lower timestamp than the one disabling the channel. That `channel_update` is then rejected by the network, causing the channel to stay disabled until the next refresh, which only happens after 10 days.
- Loading branch information