lnrpc: peer_alias field for Channel message

This commit is contained in:
Slyghtning 2023-01-15 19:28:50 +10:30
parent 73596ceac2
commit edb58a8b28
3 changed files with 2376 additions and 2332 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1531,6 +1531,9 @@ message Channel {
// This is the confirmed / on-chain zero-conf SCID.
uint64 zero_conf_confirmed_scid = 33;
// The configured alias name of our peer.
string peer_alias = 34;
}
message ListChannelsRequest {
@ -1544,6 +1547,11 @@ message ListChannelsRequest {
empty, all channels will be returned.
*/
bytes peer = 5;
// Informs the server if the peer alias lookup per channel should be
// enabled. It is turned off by default in order to avoid degradation of
// performance for existing clients.
bool peer_alias_lookup = 6;
}
message ListChannelsResponse {
// The list of active channels

View File

@ -135,6 +135,13 @@
"required": false,
"type": "string",
"format": "byte"
},
{
"name": "peer_alias_lookup",
"description": "Informs the server if the peer alias lookup per channel should be\nenabled. It is turned off by default in order to avoid degradation of\nperformance for existing clients.",
"in": "query",
"required": false,
"type": "boolean"
}
],
"tags": [
@ -3556,6 +3563,10 @@
"type": "string",
"format": "uint64",
"description": "This is the confirmed / on-chain zero-conf SCID."
},
"peer_alias": {
"type": "string",
"description": "The configured alias name of our peer."
}
}
},