lnwallet/test: describe existing bug after restart with dangling remote updates

This commit is contained in:
Joost Jager 2020-01-06 15:29:45 +01:00
parent b3bd470962
commit 41c207e247
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

@ -6178,7 +6178,12 @@ func TestChannelRestoreUpdateLogsFailedHTLC(t *testing.T) {
// At this point Alice has advanced her local commitment chain to a
// commitment with no HTLCs left. The current state on her remote
// commitment chain, however, still has the HTLC active, as she hasn't
// sent a new signature yet.
// sent a new signature yet. If we'd now restart and restore, the htlc
// failure update should still be waiting for inclusion in Alice's next
// signature. Otherwise the produced signature would be invalid.
//
// THIS IS NOT HAPPENING. The update log entry is dropped after a
// restart!
assertInLogs(t, aliceChannel, 1, 0, 0, 1)
restoreAndAssert(t, aliceChannel, 1, 0, 0, 0)