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

This commit is contained in:
Olaoluwa Osuntokun 2022-08-10 18:33:19 -07:00
parent 62a52cf56c
commit 7bf83b13a8
2 changed files with 9 additions and 5 deletions

View File

@ -2708,6 +2708,14 @@ var walletTests = []walletTestCase{
name: "change output spend confirmation",
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",
test: testSpendUnconfirmed,
@ -2744,10 +2752,6 @@ var walletTests = []walletTestCase{
name: "single funding workflow external funding tx",
test: testSingleFunderExternalFundingTx,
},
{
name: "dual funder workflow",
test: testDualFundingReservationWorkflow,
},
{
name: "output locking",
test: testFundingTransactionLockedOutputs,

View File

@ -775,7 +775,7 @@ func (l *LightningWallet) handleFundingReserveRequest(req *InitFundingReserveMsg
FeeRate: req.FundingFeePerKw,
ChangeAddr: func() (btcutil.Address, error) {
return l.NewAddress(
WitnessPubKey, true, DefaultAccountName,
TaprootPubkey, true, DefaultAccountName,
)
},
}