routing+routerrpc: add multiple outgoing channel restriction

This commit is contained in:
Joost Jager committed 2020-05-12 07:17:24 +02:00
1 parent 53e4876a1d
commit c33d94ff27
11 files changed
+287 -214

No files matched your search

+4 -1
View File
@@ -321,7 +321,10 @@ func sendPaymentRequest(ctx *cli.Context,
client := lnrpc.NewLightningClient(conn)
routerClient := routerrpc.NewRouterClient(conn)
req.OutgoingChanId = ctx.Uint64("outgoing_chan_id")
outChan := ctx.Uint64("outgoing_chan_id")
if outChan != 0 {
req.OutgoingChanIds = []uint64{outChan}
}
if ctx.IsSet(lastHopFlag.Name) {
lastHop, err := route.NewVertexFromStr(
ctx.String(lastHopFlag.Name),