mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-13 11:09:23 +01:00
lnwallet: add test case for musig2 channel funding
This commit is contained in:
parent
67ecefaac3
commit
c6308130aa
1 changed files with 14 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue