rpc: use P2TR addresses when sending funds back to wallet (anchor reserve)

This commit is contained in:
Olaoluwa Osuntokun committed 2022-08-11 17:26:18 -07:00
1 parent b711120dca
commit bcff2f07de
1 file changed
+1 -1
+1 -1
View File
@@ -1330,7 +1330,7 @@ func (r *rpcServer) SendCoins(ctx context.Context,
// ensures this is an address the wallet knows about,
// allowing us to pass the reserved value check.
changeAddr, err := r.server.cc.Wallet.NewAddress(
lnwallet.WitnessPubKey, true,
lnwallet.TaprootPubkey, true,
lnwallet.DefaultAccountName,
)
if err != nil {