mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
lnwallet: use P2TR addresses for change outputs for funding coin select
This commit is contained in:
parent
62a52cf56c
commit
7bf83b13a8
@ -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,
|
||||
|
@ -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,
|
||||
)
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user