cmd/lncli: add --peer flag to list channels

This commit adds a flag to listchannels that filters by remote pubkey.
This commit is contained in:
Conner Fromknecht committed 2020-03-05 20:44:18 -08:00
1 parent c2ec4a450d
commit 11532df5f3
5 files changed
+685 -628

No files matched your search

+638 -626
View File
File diff suppressed because it is too large. Load diff
+6
View File
@@ -1385,6 +1385,12 @@ message ListChannelsRequest {
bool inactive_only = 2;
bool public_only = 3;
bool private_only = 4;
/**
Filters the response for channels with a target peer's pubkey. If peer is
empty, all channels will be returned.
*/
bytes peer = 5;
}
message ListChannelsResponse {
/// The list of active channels
+8
View File
@@ -116,6 +116,14 @@
"required": false,
"type": "boolean",
"format": "boolean"
},
{
"name": "peer",
"description": "*\nFilters the response for channels with a target peer's pubkey. If peer is\nempty, all channels will be returned.",
"in": "query",
"required": false,
"type": "string",
"format": "byte"
}
],
"tags": [