lnrpc: add XFindBaseLocalChanAlias rpc
Add the new RPC method that looks up the base scid for a given alias. Given the previous stepping stones this commit is fairly simple, we just call into the alias manager and return the lookup result.
This commit is contained in:
8 files changed
+600
-225
No files matched your search
@@ -195,6 +195,13 @@ service Router {
|
||||
*/
|
||||
rpc XDeleteLocalChanAliases (DeleteAliasesRequest)
|
||||
returns (DeleteAliasesResponse);
|
||||
|
||||
/*
|
||||
XFindBaseLocalChanAlias is an experimental API that looks up the base scid
|
||||
for a local chan alias that was registered during the current runtime.
|
||||
*/
|
||||
rpc XFindBaseLocalChanAlias (FindBaseAliasRequest)
|
||||
returns (FindBaseAliasResponse);
|
||||
}
|
||||
|
||||
message SendPaymentRequest {
|
||||
@@ -1116,4 +1123,14 @@ message DeleteAliasesRequest {
|
||||
|
||||
message DeleteAliasesResponse {
|
||||
repeated lnrpc.AliasMap alias_maps = 1;
|
||||
}
|
||||
|
||||
message FindBaseAliasRequest {
|
||||
// The alias we want to look up the base scid for.
|
||||
uint64 alias = 1;
|
||||
}
|
||||
|
||||
message FindBaseAliasResponse {
|
||||
// The base scid that resulted from the base scid look up.
|
||||
uint64 base = 1;
|
||||
}
|
||||
Reference in new issue
Block a user