Skip to content

Commit d2c0279

Browse files
authored
Merge pull request #9456 from mohamedawnallah/deprecate-warning-sendpayment-and-sendtoroute
lnrpc+docs: deprecate warning `SendToRoute`, `SendToRouteSync`, `SendPayment`, and `SendPaymentSync` in Release 0.19
2 parents f4bf99b + d4044c2 commit d2c0279

File tree

5 files changed

+239
-201
lines changed

5 files changed

+239
-201
lines changed

docs/release-notes/release-notes-0.19.0.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- [lncli Updates](#lncli-updates)
1111
- [Breaking Changes](#breaking-changes)
1212
- [Performance Improvements](#performance-improvements)
13+
- [Deprecations](#deprecations)
1314
- [Technical and Architectural Updates](#technical-and-architectural-updates)
1415
- [BOLT Spec Updates](#bolt-spec-updates)
1516
- [Testing](#testing)
@@ -242,6 +243,26 @@ The underlying functionality between those two options remain the same.
242243

243244
* Log rotation can now use ZSTD
244245

246+
## Deprecations
247+
248+
### ⚠️ **Warning:** The following RPCs will be removed in release version **0.21**:
249+
250+
| Deprecated RPC Method | REST Equivalent | HTTP Method | Path | Replaced By |
251+
|----------------------|----------------|-------------|------------------------------|------------------|
252+
| [`lnrpc.SendToRoute`](https://lightning.engineering/api-docs/api/lnd/lightning/send-to-route/index.html) <br> [`routerrpc.SendToRoute`](https://lightning.engineering/api-docs/api/lnd/router/send-to-route/) | ❌ (No direct REST equivalent) ||| [`routerrpc.SendToRouteV2`](https://lightning.engineering/api-docs/api/lnd/router/send-to-route-v2/) |
253+
| [`lnrpc.SendPayment`](https://lightning.engineering/api-docs/api/lnd/lightning/send-payment/) <br> [`routerrpc.SendPayment`](https://lightning.engineering/api-docs/api/lnd/router/send-payment/) || `POST` | `/v1/channels/transaction-stream` | [`routerrpc.SendPaymentV2`](https://lightning.engineering/api-docs/api/lnd/router/send-payment-v2/index.html) |
254+
| [`lnrpc.SendToRouteSync`](https://lightning.engineering/api-docs/api/lnd/lightning/send-to-route-sync/index.html) || `POST` | `/v1/channels/transactions/route` | [`routerrpc.SendToRouteV2`](https://lightning.engineering/api-docs/api/lnd/router/send-to-route-v2/) |
255+
| [`lnrpc.SendPaymentSync`](https://lightning.engineering/api-docs/api/lnd/lightning/send-payment-sync/index.html) || `POST` | `/v1/channels/transactions` | [`routerrpc.SendPaymentV2`](https://lightning.engineering/api-docs/api/lnd/router/send-payment-v2/index.html) |
256+
| [`router.TrackPayment`](https://lightning.engineering/api-docs/api/lnd/router/track-payment/index.html) | ❌ (No direct REST equivalent) ||| [`routerrpc.TrackPaymentV2`](https://lightning.engineering/api-docs/api/lnd/router/track-payment-v2/) |
257+
258+
🚨 **Users are strongly encouraged** to transition to the new **V2 methods** before release **0.21** to ensure compatibility:
259+
260+
| New RPC Method | REST Equivalent | HTTP Method | Path |
261+
|---------------|----------------|-------------|------------------------|
262+
| [`routerrpc.SendToRouteV2`](https://lightning.engineering/api-docs/api/lnd/router/send-to-route-v2/) || `POST` | `/v2/router/route/send` |
263+
| [`routerrpc.SendPaymentV2`](https://lightning.engineering/api-docs/api/lnd/router/send-payment-v2/index.html) || `POST` | `/v2/router/send` |
264+
| [`routerrpc.TrackPaymentV2`](https://lightning.engineering/api-docs/api/lnd/router/track-payment-v2/) || `GET` | `/v2/router/track/{payment_hash}` |
265+
245266
# Technical and Architectural Updates
246267
## BOLT Spec Updates
247268

0 commit comments

Comments
 (0)