lnwallet: use P2TR addresses for change outputs for funding coin select

This commit is contained in:
Olaoluwa Osuntokun committed 2022-08-11 17:26:21 -07:00
1 parent bcff2f07de
commit 322937a67e
2 files changed
+9 -5

No files matched your search

+8 -4
View File
@@ -2708,6 +2708,14 @@ var walletTests = []walletTestCase{
name: "change output spend confirmation", name: "change output spend confirmation",
test: testChangeOutputSpendConfirmation, test: testChangeOutputSpendConfirmation,
}, },
{
// TODO(guggero): this test should remain second until dual
// funding can properly exchange full UTXO information and we
// can use P2TR change outputs as the funding inputs for a dual
// funded channel.
name: "dual funder workflow",
test: testDualFundingReservationWorkflow,
},
{ {
name: "spend unconfirmed outputs", name: "spend unconfirmed outputs",
test: testSpendUnconfirmed, test: testSpendUnconfirmed,
@@ -2744,10 +2752,6 @@ var walletTests = []walletTestCase{
name: "single funding workflow external funding tx", name: "single funding workflow external funding tx",
test: testSingleFunderExternalFundingTx, test: testSingleFunderExternalFundingTx,
}, },
{
name: "dual funder workflow",
test: testDualFundingReservationWorkflow,
},
{ {
name: "output locking", name: "output locking",
test: testFundingTransactionLockedOutputs, test: testFundingTransactionLockedOutputs,
+1 -1
View File
@@ -775,7 +775,7 @@ func (l *LightningWallet) handleFundingReserveRequest(req *InitFundingReserveMsg
FeeRate: req.FundingFeePerKw, FeeRate: req.FundingFeePerKw,
ChangeAddr: func() (btcutil.Address, error) { ChangeAddr: func() (btcutil.Address, error) {
return l.NewAddress( return l.NewAddress(
WitnessPubKey, true, DefaultAccountName, TaprootPubkey, true, DefaultAccountName,
) )
}, },
} }