Skip to content

Commit

Permalink
lnwallet: add test case for musig2 channel funding
Browse files Browse the repository at this point in the history
  • Loading branch information
Roasbeef committed Jun 6, 2023
1 parent 0bf72d9 commit f8bc68e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion lnwallet/test/test_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ func testSingleFunderReservationWorkflow(miner *rpctest.Harness,
// by having Alice immediately process his contribution.
err = aliceChanReservation.ProcessContribution(bobContribution)
if err != nil {
t.Fatalf("alice unable to process bob's contribution")
t.Fatalf("alice unable to process bob's contribution: %v", err)
}
assertContributionInitPopulated(t, bobChanReservation.TheirContribution())

Expand Down Expand Up @@ -2760,6 +2760,19 @@ var walletTests = []walletTestCase{
)
},
},
{
name: "single funding workflow musig2",
test: func(miner *rpctest.Harness, alice,
bob *lnwallet.LightningWallet, t *testing.T) {

testSingleFunderReservationWorkflow(
miner, alice, bob, t,
lnwallet.CommitmentTypeSimpleTaproot, nil,
nil, [32]byte{}, 0,
)
},
},
// TODO(roasbeef): add musig2 external funding
{
name: "single funding workflow external funding tx",
test: testSingleFunderExternalFundingTx,
Expand Down

0 comments on commit f8bc68e

Please sign in to comment.