lnwallet+peer: properly process update_fee messages sent after a shutdown has been initiated #6522
Labels
channel closing
Related to the closing of channels cooperatively and uncooperatively
P1
MUST be fixed or reviewed
spec
Milestone
Today when we receive a shutdown requests, we'll remove the link from the switch entirely also (
lnd/peer/brontide.go
Lines 2695 to 2701 in ddeccf8
readHandler
. This was fine when we wanted to not process any further updates, but breaks down given that the spec requires (being updated to make this more clear) that one still processupdateFee
messages after a shutdown has been sent (but before the first closing signed).What we should still remove the link from the switch and send out a disable, but we need to special case for the sig+revoke and
UpdateFee
messages when we're in this state. One way to do this (given we already have the channel struct at that point) would be to manually feed in these messages into the channel state machine.Steps To Completion
readHandler
loop to send any update messages post channel close into the chan closerUpdateFee
message, generating the corresponding messages needed to fully lock in the change.The text was updated successfully, but these errors were encountered: