Skip to content

Commit

Permalink
router: add AMP flag to the SendPaymentRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
bhandras authored and guggero committed Aug 26, 2024
1 parent d24699d commit fb7026e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions router_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ type SendPaymentRequest struct {
// only, to 1 to optimize for reliability only or a value in-between for
// a mix.
TimePref float64

// AMP is set to true if the payment should be an AMP payment.
AMP bool
}

// InterceptedHtlc contains information about a htlc that was intercepted in
Expand Down Expand Up @@ -398,6 +401,7 @@ func (r *routerClient) SendPayment(ctx context.Context,
MaxParts: request.MaxParts,
OutgoingChanIds: request.OutgoingChanIds,
AllowSelfPayment: request.AllowSelfPayment,
Amp: request.AMP,
TimePref: request.TimePref,
}
if request.MaxCltv != nil {
Expand Down

0 comments on commit fb7026e

Please sign in to comment.