From c6308130aab870cb5ea28408eb0fca06a9f05fc1 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 19 Jan 2023 17:16:21 -0800 Subject: [PATCH] lnwallet: add test case for musig2 channel funding --- lnwallet/test/test_interface.go | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lnwallet/test/test_interface.go b/lnwallet/test/test_interface.go index e27e12ded..563a975f8 100644 --- a/lnwallet/test/test_interface.go +++ b/lnwallet/test/test_interface.go @@ -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()) @@ -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,