lnwallet: properly reject new commitment if next revocation point isn't known

This commit is contained in:
Olaoluwa Osuntokun committed 2017-12-11 15:32:31 -08:00
1 parent 4f2a8fd533
commit 62da377f78
2 files changed
+3 -4

No files matched your search

+1 -1
View File
@@ -3859,7 +3859,7 @@ func TestSignCommitmentFailNotLockedIn(t *testing.T) {
// Next, we'll modify Alice's internal state to omit knowledge of Bob's
// next revocation point.
aliceChannel.channelState.RemoteCurrentRevocation = nil
aliceChannel.channelState.RemoteNextRevocation = nil
// If we now try to initiate a state update, then it should fail as
// Alice is unable to actually create a new state.