Skip to content

Commit

Permalink
lnrpc: mark existing ListUnspent RPC as deprecated in favor of walletrpc
Browse files Browse the repository at this point in the history
  • Loading branch information
wpaulino committed Jun 4, 2020
1 parent acfd432 commit 146611d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions lnrpc/rpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion lnrpc/rpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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) = {
Expand Down
3 changes: 2 additions & 1 deletion lnrpc/rpc.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 146611d

Please sign in to comment.