mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-10 04:43:33 +01:00
rpc: use P2TR addresses when sending funds back to wallet (anchor reserve)
This commit is contained in:
@@ -1330,7 +1330,7 @@ func (r *rpcServer) SendCoins(ctx context.Context,
|
|||||||
// ensures this is an address the wallet knows about,
|
// ensures this is an address the wallet knows about,
|
||||||
// allowing us to pass the reserved value check.
|
// allowing us to pass the reserved value check.
|
||||||
changeAddr, err := r.server.cc.Wallet.NewAddress(
|
changeAddr, err := r.server.cc.Wallet.NewAddress(
|
||||||
lnwallet.WitnessPubKey, true,
|
lnwallet.TaprootPubkey, true,
|
||||||
lnwallet.DefaultAccountName,
|
lnwallet.DefaultAccountName,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user