Skip to content

lnd: remove deprecated endpoints sendpayment and sendtoroute #8175

@yyforyongyu

Description

@yyforyongyu

The endpoints sendpayment and sendtoroute have been deprecated more than 3 years(#4147), and now should be safe to remove them,

lnd/lnrpc/lightning.proto

Lines 265 to 267 in e02fd39

rpc SendPayment (stream SendRequest) returns (stream SendResponse) {
option deprecated = true;
}

lnd/lnrpc/lightning.proto

Lines 284 to 286 in e02fd39

rpc SendToRoute (stream SendToRouteRequest) returns (stream SendResponse) {
option deprecated = true;
}

To properly remove them:

  1. update the test framework by removing SendToRoute and replace all the old calls with the newer SendToRouteV2.
  2. remove the endpoints, which includes rpcserver.go, lightning.proto and other unit test files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3might get fixed, nice to havebeginnerIssues suitable for new developerscode healthRelated to code commenting, refactoring, and other non-behaviour improvementsgood first issueIssues suitable for first time contributors to LNDpaymentsRelated to invoices/paymentsroutingrpcRelated to the RPC interface

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions