File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,10 @@ type SendPaymentRequest struct {
77
77
// together and sorted in forward order in order to reach the
78
78
// destination successfully.
79
79
RouteHints [][]zpay32.HopHint
80
+
81
+ // LastHopPubkey is the pubkey of the last hop of the route taken
82
+ // for this payment. If empty, any hop may be used.
83
+ LastHopPubkey * route.Vertex
80
84
}
81
85
82
86
// routerClient is a wrapper around the generated routerrpc proxy.
@@ -111,6 +115,9 @@ func (r *routerClient) SendPayment(ctx context.Context,
111
115
if request .OutgoingChannel != nil {
112
116
rpcReq .OutgoingChanId = * request .OutgoingChannel
113
117
}
118
+ if request .LastHopPubkey != nil {
119
+ rpcReq .LastHopPubkey = request .LastHopPubkey [:]
120
+ }
114
121
115
122
// Only if there is no payment request set, we will parse the individual
116
123
// payment parameters.
You can’t perform that action at this time.
0 commit comments