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 May 12, 2023
1 parent 8d6dbba commit ce6879c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lnwallet/channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5331,10 +5331,13 @@ func TestInvalidCommitSigError(t *testing.T) {

// Before the signature gets to Bob, we'll mutate it, such that the
// signature is now actually invalid.
aliceSigCopy := aliceSig.Copy()
aliceSigCopyBytes := aliceSigCopy.RawBytes()
aliceSigCopyBytes[0] ^= 88
aliceSig, err = lnwire.NewSigFromWireECDSA(aliceSigCopyBytes)
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.
Expand Down

0 comments on commit ce6879c

Please sign in to comment.