rpc+cli: add general ListAliases function to dump all aliases

This commit is contained in:
eugene committed 2022-08-09 14:11:08 -04:00
1 parent 48f270fe20
commit aa576adecc
11 files changed
+1574 -1084

No files matched your search

+23
View File
@@ -570,6 +570,13 @@ service Lightning {
*/
rpc SubscribeCustomMessages (SubscribeCustomMessagesRequest)
returns (stream CustomMessage);
/* lncli: `listaliases`
ListAliases returns the set of all aliases that have ever existed with
their confirmed SCID (if it exists) and/or the base SCID (in the case of
zero conf).
*/
rpc ListAliases (ListAliasesRequest) returns (ListAliasesResponse);
}
message SubscribeCustomMessagesRequest {
@@ -1513,6 +1520,22 @@ message ListChannelsResponse {
repeated Channel channels = 11;
}
message AliasMap {
/*
For non-zero-conf channels, this is the confirmed SCID. Otherwise, this is
the first assigned "base" alias.
*/
uint64 base_scid = 1;
// The set of all aliases stored for the base SCID.
repeated uint64 aliases = 2;
}
message ListAliasesRequest {
}
message ListAliasesResponse {
repeated AliasMap alias_maps = 1;
}
enum Initiator {
INITIATOR_UNKNOWN = 0;
INITIATOR_LOCAL = 1;