routerrpc: rename rpcs to SendPaymentV2 and TrackPaymentV2

The message in the response stream changed. Rename the calls themselves,
to prevent older applications from getting decode errors. Especially
troublesome is the case where the request is executed (send payment),
but the application can't read the outcome (payment sent or not?)
This commit is contained in:
Joost Jager committed 2020-04-21 20:36:58 +02:00
1 parent 4ed0a35b10
commit d451ef4ee1
5 files changed
+182 -182

No files matched your search

+2 -2
View File
@@ -399,7 +399,7 @@ func sendPaymentRequest(ctx *cli.Context,
showInflight := ctx.Bool(showInflightFlag.Name)
stream, err := routerClient.SendPayment(context.Background(), req)
stream, err := routerClient.SendPaymentV2(context.Background(), req)
if err != nil {
return err
}
@@ -462,7 +462,7 @@ func trackPayment(ctx *cli.Context) error {
PaymentHash: hash,
}
stream, err := client.TrackPayment(context.Background(), req)
stream, err := client.TrackPaymentV2(context.Background(), req)
if err != nil {
return err
}