Skip to content

Commit fb7026e

Browse files
bhandrasguggero
authored andcommitted
router: add AMP flag to the SendPaymentRequest
1 parent d24699d commit fb7026e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

router_client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,9 @@ type SendPaymentRequest struct {
281281
// only, to 1 to optimize for reliability only or a value in-between for
282282
// a mix.
283283
TimePref float64
284+
285+
// AMP is set to true if the payment should be an AMP payment.
286+
AMP bool
284287
}
285288

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

0 commit comments

Comments
 (0)