lnwallet/chanfunding: update assemblers to support musig2
In this commit, we update the set of intents and assemblers to recognize musig2. For this change, we use a new bool, `musig2`, then use that to determine if we need to use the new taproot funding scripts or not.
This commit is contained in:
6 files changed
+40
-4
No files matched your search
@@ -2974,11 +2974,11 @@ func testSingleFunderExternalFundingTx(miner *rpctest.Harness,
|
||||
thawHeight := uint32(200)
|
||||
aliceExternalFunder := chanfunding.NewCannedAssembler(
|
||||
thawHeight, *chanPoint, btcutil.Amount(chanAmt), &aliceFundingKey,
|
||||
bobFundingKey.PubKey, true,
|
||||
bobFundingKey.PubKey, true, false,
|
||||
)
|
||||
bobShimIntent, err := chanfunding.NewCannedAssembler(
|
||||
thawHeight, *chanPoint, btcutil.Amount(chanAmt), &bobFundingKey,
|
||||
aliceFundingKey.PubKey, false,
|
||||
aliceFundingKey.PubKey, false, false,
|
||||
).ProvisionChannel(&chanfunding.Request{
|
||||
LocalAmt: btcutil.Amount(chanAmt),
|
||||
MinConfs: 1,
|
||||
|
||||
Reference in new issue
Block a user