lnrpc: mark existing ListUnspent RPC as deprecated in favor of walletrpc

This commit is contained in:
Wilmer Paulino 2020-05-20 16:14:20 -07:00
parent acfd432602
commit 146611d1c1
No known key found for this signature in database
GPG Key ID: 6DF57B9F9514972F
3 changed files with 9 additions and 2 deletions

@ -12407,6 +12407,8 @@ type LightningClient interface {
//target. //target.
SendCoins(ctx context.Context, in *SendCoinsRequest, opts ...grpc.CallOption) (*SendCoinsResponse, error) SendCoins(ctx context.Context, in *SendCoinsRequest, opts ...grpc.CallOption) (*SendCoinsResponse, error)
// lncli: `listunspent` // lncli: `listunspent`
//Deprecated, use walletrpc.ListUnspent instead.
//
//ListUnspent returns a list of all utxos spendable by the wallet with a //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.
ListUnspent(ctx context.Context, in *ListUnspentRequest, opts ...grpc.CallOption) (*ListUnspentResponse, error) ListUnspent(ctx context.Context, in *ListUnspentRequest, opts ...grpc.CallOption) (*ListUnspentResponse, error)
@ -13486,6 +13488,8 @@ type LightningServer interface {
//target. //target.
SendCoins(context.Context, *SendCoinsRequest) (*SendCoinsResponse, error) SendCoins(context.Context, *SendCoinsRequest) (*SendCoinsResponse, error)
// lncli: `listunspent` // lncli: `listunspent`
//Deprecated, use walletrpc.ListUnspent instead.
//
//ListUnspent returns a list of all utxos spendable by the wallet with a //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.
ListUnspent(context.Context, *ListUnspentRequest) (*ListUnspentResponse, error) ListUnspent(context.Context, *ListUnspentRequest) (*ListUnspentResponse, error)

@ -83,6 +83,8 @@ service Lightning {
} }
/* lncli: `listunspent` /* lncli: `listunspent`
Deprecated, use walletrpc.ListUnspent instead.
ListUnspent returns a list of all utxos spendable by the wallet with a 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.
*/ */

@ -1363,7 +1363,8 @@
}, },
"/v1/utxos": { "/v1/utxos": {
"get": { "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", "operationId": "ListUnspent",
"responses": { "responses": {
"200": { "200": {