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

+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