From 146611d1c1a80c8e7aff3ce0178851583132f803 Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Wed, 20 May 2020 16:14:20 -0700 Subject: [PATCH] lnrpc: mark existing ListUnspent RPC as deprecated in favor of walletrpc --- lnrpc/rpc.pb.go | 4 ++++ lnrpc/rpc.proto | 4 +++- lnrpc/rpc.swagger.json | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lnrpc/rpc.pb.go b/lnrpc/rpc.pb.go index e4fc8fbe..ee532aef 100644 --- a/lnrpc/rpc.pb.go +++ b/lnrpc/rpc.pb.go @@ -12407,6 +12407,8 @@ type LightningClient interface { //target. SendCoins(ctx context.Context, in *SendCoinsRequest, opts ...grpc.CallOption) (*SendCoinsResponse, error) // lncli: `listunspent` + //Deprecated, use walletrpc.ListUnspent instead. + // //ListUnspent returns a list of all utxos spendable by the wallet with a //number of confirmations between the specified minimum and maximum. ListUnspent(ctx context.Context, in *ListUnspentRequest, opts ...grpc.CallOption) (*ListUnspentResponse, error) @@ -13486,6 +13488,8 @@ type LightningServer interface { //target. SendCoins(context.Context, *SendCoinsRequest) (*SendCoinsResponse, error) // lncli: `listunspent` + //Deprecated, use walletrpc.ListUnspent instead. + // //ListUnspent returns a list of all utxos spendable by the wallet with a //number of confirmations between the specified minimum and maximum. ListUnspent(context.Context, *ListUnspentRequest) (*ListUnspentResponse, error) diff --git a/lnrpc/rpc.proto b/lnrpc/rpc.proto index ec17c239..38203147 100644 --- a/lnrpc/rpc.proto +++ b/lnrpc/rpc.proto @@ -83,8 +83,10 @@ service Lightning { } /* lncli: `listunspent` + Deprecated, use walletrpc.ListUnspent instead. + ListUnspent returns a list of all utxos spendable by the wallet with a - number of confirmations between the specified minimum and maximum. + number of confirmations between the specified minimum and maximum. */ rpc ListUnspent (ListUnspentRequest) returns (ListUnspentResponse) { option (google.api.http) = { diff --git a/lnrpc/rpc.swagger.json b/lnrpc/rpc.swagger.json index b9e421e8..41651f04 100644 --- a/lnrpc/rpc.swagger.json +++ b/lnrpc/rpc.swagger.json @@ -1363,7 +1363,8 @@ }, "/v1/utxos": { "get": { - "summary": "lncli: `listunspent`\nListUnspent returns a list of all utxos spendable by the wallet with a\nnumber of confirmations between the specified minimum and maximum.", + "summary": "lncli: `listunspent`\nDeprecated, use walletrpc.ListUnspent instead.", + "description": "ListUnspent returns a list of all utxos spendable by the wallet with a\nnumber of confirmations between the specified minimum and maximum.", "operationId": "ListUnspent", "responses": { "200": {