Skip to content

Commit 4728515

Browse files
committed
proto: remove deprecated SendPayment, SendToRoute, TrackPayment RPCs
Remove the following deprecated RPC definitions that were announced for removal in 0.21 via the 0.20 release notes: lnrpc: - SendPayment (bidirectional streaming) - SendPaymentSync - SendToRoute (bidirectional streaming) - SendToRouteSync routerrpc: - SendPayment (streaming) - SendToRoute - TrackPayment (streaming) Also remove the now-unused PaymentState enum and PaymentStatus message that were only used by the deprecated TrackPayment response stream, plus the corresponding REST annotations from the yaml files. Regenerate all protobuf, gRPC, REST gateway, JSON, and swagger files.
1 parent 485af21 commit 4728515

16 files changed

Lines changed: 1401 additions & 3391 deletions

docs/rest/websockets.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ ws.on('open', function() {
130130
// This empty message will be ignored by the channel acceptor though, this
131131
// is just for telling the grpc-gateway library that it can forward the
132132
// request to the gRPC interface now. If this were an RPC where the client
133-
// always sends the first message (for example the streaming payment RPC
134-
// /v1/channels/transaction-stream), we'd simply send the first "real"
133+
// always sends the first message (for example the HTLC interceptor RPC
134+
// /v2/router/htlcinterceptor), we'd simply send the first "real"
135135
// message here when needed.
136136
ws.send('{}');
137137
});

lnrpc/README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,6 @@ description):
6969
* Attempts to close a target channel. A channel can either be closed
7070
cooperatively if the channel peer is online, or using a "force" close to
7171
broadcast the latest channel state.
72-
* SendPayment
73-
* Send a payment over Lightning to a target peer.
74-
* SendPaymentSync
75-
* SendPaymentSync is the synchronous non-streaming version of SendPayment.
76-
* SendToRoute
77-
* Send a payment over Lightning to a target peer through a route explicitly
78-
defined by the user.
79-
* SendToRouteSync
80-
* SendToRouteSync is the synchronous non-streaming version of SendToRoute.
8172
* AddInvoice
8273
* Adds an invoice to the daemon. Invoices are automatically settled once
8374
seen as an incoming HTLC.

0 commit comments

Comments
 (0)