mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-09 18:52:09 +02:00
lnwallet: use P2TR addresses for change outputs for funding coin select
This commit is contained in:
@@ -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,
|
||||
)
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user