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.
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)

@ -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) = {

@ -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": {