[feature]: Adopt new BOLT spec. update for the channel reestablishment msg. #8589
Labels
channel management
The management of the nodes channels
enhancement
Improvements to existing features / behaviour
recovery
Related to the backup/restoration of LND data (e.g. wallet seeds)
The behaviour in case a node loses its channel state changed with lightning/bolts#942 and will be further clarified by lightning/bolts#1049.
During the channel re-establishment process the local LND node would realize that the remote node suffered from a data-loss and would force-close the channel. However the new spec requires to wait for the peer (who suffered the data-loss) to send us an error upon which the channel is force closed by the peer who still has all the data available. This allows the peer who messed up his local data view to fix it by for example using a different data-backup. So it's definitely a useful feature.
Apart from the potential tests, this should be a small change because we already send an error in case of the local data loss.
Code part which needs to be adopted:
lnd/htlcswitch/link.go
Lines 1119 to 1146 in b76f733
@Roasbeef maybe this is a redundant issue already feel free to close.
The text was updated successfully, but these errors were encountered: