Skip to content

Commit

Permalink
[temp] - lnwallet: channel test sig mutation rebase fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Roasbeef committed Apr 27, 2023
1 parent 4bb4f9d commit 58e6bef
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lnwallet/channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5308,7 +5308,14 @@ func TestInvalidCommitSigError(t *testing.T) {

// Before the signature gets to Bob, we'll mutate it, such that the
// signature is now actually invalid.
aliceSig[0] ^= 88
sigCopy := aliceSig.Copy()
copyBytes := sigCopy.RawBytes()
copyBytes[0] ^= 80

aliceSig, err = lnwire.NewSigFromSchnorrRawSignature(
copyBytes,
)
require.NoError(t, err)

// Bob should reject this new state, and return the proper error.
err = bobChannel.ReceiveNewCommitment(aliceSig, aliceHtlcSigs)
Expand Down

0 comments on commit 58e6bef

Please sign in to comment.