htlcswitch: keep final htlc outcome

This commit is contained in:
Joost Jager
2022-05-10 12:33:44 +02:00
parent b85cda2a1d
commit 28256b7ea8
20 changed files with 466 additions and 111 deletions

View File

@@ -355,7 +355,7 @@ func TestRestoreChannelShells(t *testing.T) {
// Ensure that it isn't possible to modify the commitment state machine
// of this restored channel.
channel := nodeChans[0]
err = channel.UpdateCommitment(nil, nil)
_, err = channel.UpdateCommitment(nil, nil)
if err != ErrNoRestoredChannelMutation {
t.Fatalf("able to mutate restored channel")
}