lnwallet: use P2TR addresses for change outputs for funding coin select
This commit is contained in:
2 files changed
+9
-5
No files matched your search
@@ -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
@@ -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,
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user