peer: always send channel update on reconnect

We have existing logic to attempt to reliably send a channel update to
the remote peer. In the wild, we've seen this fail, as it's possible
right when we send the update the peer disconnects.

In this commit, we implement a simple fix which is just to send the chan
update each time we connect to the remote party.

Fixes https://github.com/lightningnetwork/lnd/issues/6870.
This commit is contained in:
Olaoluwa Osuntokun
2024-07-31 18:03:57 -07:00
parent a449a5d132
commit 9acad37f57
4 changed files with 131 additions and 2 deletions

View File

@@ -57,6 +57,9 @@ commitment when the channel was force closed.
[here](https://github.com/lightningnetwork/lnd/issues/8146) for a summary of
the issue.
* We'll now always send [channel updates to our remote peer for open
channels](https://github.com/lightningnetwork/lnd/pull/8963).
# New Features
## Functional Enhancements
## RPC Additions
@@ -243,6 +246,7 @@ commitment when the channel was force closed.
* Elle Mouton
* Eugene Siegel
* Matheus Degiovani
* Olaoluwa Osuntokun
* Oliver Gugger
* Slyghtning
* Yong Yu