Skip to content

Commit 4be9737

Browse files
committed
cmd/litcli: change keysend HTLC carrier amount to 354 sats
1 parent 153a55b commit 4be9737

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cmd/litcli/ln.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,13 +361,12 @@ func sendPayment(ctx *cli.Context) error {
361361
"%w", err)
362362
}
363363

364-
// We use a constant amount of 500 to carry the asset HTLCs. In the
365-
// future, we can use the double HTLC trick here, though it consumes
366-
// more commitment space.
367-
const htlcCarrierAmt = 500
364+
// Use the smallest possible non-dust HTLC amount to carry the asset
365+
// HTLCs. In the future, we can use the double HTLC trick here, though
366+
// it consumes more commitment space.
368367
req := &routerrpc.SendPaymentRequest{
369368
Dest: destNode,
370-
Amt: htlcCarrierAmt,
369+
Amt: int64(rfqmath.DefaultOnChainHtlcSat),
371370
DestCustomRecords: make(map[uint64][]byte),
372371
}
373372

0 commit comments

Comments
 (0)