Skip to content

Commit 06e8c74

Browse files
authored
fix: set target conf to 1 while withdrawing (#1175)
Fixes #684 Sets the target conf to 1 so LND can adjust the fee accordingly to process the tx ASAP ⚡
2 parents f43672b + a475bbd commit 06e8c74

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lnclient/lnd/lnd.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -972,9 +972,10 @@ func (svc *LNDService) GetOnchainBalance(ctx context.Context) (*lnclient.Onchain
972972

973973
func (svc *LNDService) RedeemOnchainFunds(ctx context.Context, toAddress string, amount uint64, sendAll bool) (txId string, err error) {
974974
resp, err := svc.client.SendCoins(ctx, &lnrpc.SendCoinsRequest{
975-
Addr: toAddress,
976-
SendAll: sendAll,
977-
Amount: int64(amount),
975+
Addr: toAddress,
976+
SendAll: sendAll,
977+
Amount: int64(amount),
978+
TargetConf: 1,
978979
})
979980
if err != nil {
980981
logger.Logger.WithError(err).Error("Failed to send onchain funds")

0 commit comments

Comments
 (0)