@@ -112,6 +112,11 @@ def __init__(self, channel):
112112 request_serializer = lightning__pb2 .GetInfoRequest .SerializeToString ,
113113 response_deserializer = lightning__pb2 .GetInfoResponse .FromString ,
114114 )
115+ self .GetDebugInfo = channel .unary_unary (
116+ '/lnrpc.Lightning/GetDebugInfo' ,
117+ request_serializer = lightning__pb2 .GetDebugInfoRequest .SerializeToString ,
118+ response_deserializer = lightning__pb2 .GetDebugInfoResponse .FromString ,
119+ )
115120 self .GetRecoveryInfo = channel .unary_unary (
116121 '/lnrpc.Lightning/GetRecoveryInfo' ,
117122 request_serializer = lightning__pb2 .GetRecoveryInfoRequest .SerializeToString ,
@@ -357,6 +362,16 @@ def __init__(self, channel):
357362 request_serializer = lightning__pb2 .SubscribeCustomMessagesRequest .SerializeToString ,
358363 response_deserializer = lightning__pb2 .CustomMessage .FromString ,
359364 )
365+ self .ListAliases = channel .unary_unary (
366+ '/lnrpc.Lightning/ListAliases' ,
367+ request_serializer = lightning__pb2 .ListAliasesRequest .SerializeToString ,
368+ response_deserializer = lightning__pb2 .ListAliasesResponse .FromString ,
369+ )
370+ self .LookupHtlcResolution = channel .unary_unary (
371+ '/lnrpc.Lightning/LookupHtlcResolution' ,
372+ request_serializer = lightning__pb2 .LookupHtlcResolutionRequest .SerializeToString ,
373+ response_deserializer = lightning__pb2 .LookupHtlcResolutionResponse .FromString ,
374+ )
360375
361376
362377class LightningServicer (object ):
@@ -487,8 +502,10 @@ def SignMessage(self, request, context):
487502
488503 def VerifyMessage (self , request , context ):
489504 """lncli: `verifymessage`
490- VerifyMessage verifies a signature over a msg. The signature must be
491- zbase32 encoded and signed by an active node in the resident node's
505+ VerifyMessage verifies a signature over a message and recovers the signer's
506+ public key. The signature is only deemed valid if the recovered public key
507+ corresponds to a node key in the public Lightning network. The signature
508+ must be zbase32 encoded and signed by an active node in the resident node's
492509 channel database. In addition to returning the validity of the signature,
493510 VerifyMessage also returns the recovered pubkey from the signature.
494511 """
@@ -544,6 +561,16 @@ def GetInfo(self, request, context):
544561 context .set_details ('Method not implemented!' )
545562 raise NotImplementedError ('Method not implemented!' )
546563
564+ def GetDebugInfo (self , request , context ):
565+ """lncli: 'getdebuginfo'
566+ GetDebugInfo returns debug information concerning the state of the daemon
567+ and its subsystems. This includes the full configuration and the latest log
568+ entries from the log file.
569+ """
570+ context .set_code (grpc .StatusCode .UNIMPLEMENTED )
571+ context .set_details ('Method not implemented!' )
572+ raise NotImplementedError ('Method not implemented!' )
573+
547574 def GetRecoveryInfo (self , request , context ):
548575 """* lncli: `getrecoveryinfo`
549576 GetRecoveryInfo returns information concerning the recovery mode including
@@ -773,7 +800,7 @@ def SubscribeInvoices(self, request, context):
773800 optionally specify the add_index and/or the settle_index. If the add_index
774801 is specified, then we'll first start by sending add invoice events for all
775802 invoices with an add_index greater than the specified value. If the
776- settle_index is specified, the next, we'll send out all settle events for
803+ settle_index is specified, then next, we'll send out all settle events for
777804 invoices with a settle_index greater than the specified value. One or both
778805 of these fields can be set. If no fields are set, then we'll only send out
779806 the latest add/settle events.
@@ -801,7 +828,7 @@ def ListPayments(self, request, context):
801828 raise NotImplementedError ('Method not implemented!' )
802829
803830 def DeletePayment (self , request , context ):
804- """
831+ """lncli: `deletepayments`
805832 DeletePayment deletes an outgoing payment from DB. Note that it will not
806833 attempt to delete an In-Flight payment, since that would be unsafe.
807834 """
@@ -810,7 +837,7 @@ def DeletePayment(self, request, context):
810837 raise NotImplementedError ('Method not implemented!' )
811838
812839 def DeleteAllPayments (self , request , context ):
813- """
840+ """lncli: `deletepayments --all`
814841 DeleteAllPayments deletes all outgoing payments from DB. Note that it will
815842 not attempt to delete In-Flight payments, since that would be unsafe.
816843 """
@@ -981,7 +1008,7 @@ def ExportAllChannelBackups(self, request, context):
9811008 raise NotImplementedError ('Method not implemented!' )
9821009
9831010 def VerifyChanBackup (self , request , context ):
984- """
1011+ """lncli: `verifychanbackup`
9851012 VerifyChanBackup allows a caller to verify the integrity of a channel backup
9861013 snapshot. This method will accept either a packed Single or a packed Multi.
9871014 Specifying both will result in an error.
@@ -1092,6 +1119,30 @@ def SubscribeCustomMessages(self, request, context):
10921119 """lncli: `subscribecustom`
10931120 SubscribeCustomMessages subscribes to a stream of incoming custom peer
10941121 messages.
1122+
1123+ To include messages with type outside of the custom range (>= 32768) lnd
1124+ needs to be compiled with the `dev` build tag, and the message type to
1125+ override should be specified in lnd's experimental protocol configuration.
1126+ """
1127+ context .set_code (grpc .StatusCode .UNIMPLEMENTED )
1128+ context .set_details ('Method not implemented!' )
1129+ raise NotImplementedError ('Method not implemented!' )
1130+
1131+ def ListAliases (self , request , context ):
1132+ """lncli: `listaliases`
1133+ ListAliases returns the set of all aliases that have ever existed with
1134+ their confirmed SCID (if it exists) and/or the base SCID (in the case of
1135+ zero conf).
1136+ """
1137+ context .set_code (grpc .StatusCode .UNIMPLEMENTED )
1138+ context .set_details ('Method not implemented!' )
1139+ raise NotImplementedError ('Method not implemented!' )
1140+
1141+ def LookupHtlcResolution (self , request , context ):
1142+ """
1143+ LookupHtlcResolution retrieves a final htlc resolution from the database.
1144+ If the htlc has no final resolution yet, a NotFound grpc status code is
1145+ returned.
10951146 """
10961147 context .set_code (grpc .StatusCode .UNIMPLEMENTED )
10971148 context .set_details ('Method not implemented!' )
@@ -1180,6 +1231,11 @@ def add_LightningServicer_to_server(servicer, server):
11801231 request_deserializer = lightning__pb2 .GetInfoRequest .FromString ,
11811232 response_serializer = lightning__pb2 .GetInfoResponse .SerializeToString ,
11821233 ),
1234+ 'GetDebugInfo' : grpc .unary_unary_rpc_method_handler (
1235+ servicer .GetDebugInfo ,
1236+ request_deserializer = lightning__pb2 .GetDebugInfoRequest .FromString ,
1237+ response_serializer = lightning__pb2 .GetDebugInfoResponse .SerializeToString ,
1238+ ),
11831239 'GetRecoveryInfo' : grpc .unary_unary_rpc_method_handler (
11841240 servicer .GetRecoveryInfo ,
11851241 request_deserializer = lightning__pb2 .GetRecoveryInfoRequest .FromString ,
@@ -1425,6 +1481,16 @@ def add_LightningServicer_to_server(servicer, server):
14251481 request_deserializer = lightning__pb2 .SubscribeCustomMessagesRequest .FromString ,
14261482 response_serializer = lightning__pb2 .CustomMessage .SerializeToString ,
14271483 ),
1484+ 'ListAliases' : grpc .unary_unary_rpc_method_handler (
1485+ servicer .ListAliases ,
1486+ request_deserializer = lightning__pb2 .ListAliasesRequest .FromString ,
1487+ response_serializer = lightning__pb2 .ListAliasesResponse .SerializeToString ,
1488+ ),
1489+ 'LookupHtlcResolution' : grpc .unary_unary_rpc_method_handler (
1490+ servicer .LookupHtlcResolution ,
1491+ request_deserializer = lightning__pb2 .LookupHtlcResolutionRequest .FromString ,
1492+ response_serializer = lightning__pb2 .LookupHtlcResolutionResponse .SerializeToString ,
1493+ ),
14281494 }
14291495 generic_handler = grpc .method_handlers_generic_handler (
14301496 'lnrpc.Lightning' , rpc_method_handlers )
@@ -1725,6 +1791,23 @@ def GetInfo(request,
17251791 options , channel_credentials ,
17261792 insecure , call_credentials , compression , wait_for_ready , timeout , metadata )
17271793
1794+ @staticmethod
1795+ def GetDebugInfo (request ,
1796+ target ,
1797+ options = (),
1798+ channel_credentials = None ,
1799+ call_credentials = None ,
1800+ insecure = False ,
1801+ compression = None ,
1802+ wait_for_ready = None ,
1803+ timeout = None ,
1804+ metadata = None ):
1805+ return grpc .experimental .unary_unary (request , target , '/lnrpc.Lightning/GetDebugInfo' ,
1806+ lightning__pb2 .GetDebugInfoRequest .SerializeToString ,
1807+ lightning__pb2 .GetDebugInfoResponse .FromString ,
1808+ options , channel_credentials ,
1809+ insecure , call_credentials , compression , wait_for_ready , timeout , metadata )
1810+
17281811 @staticmethod
17291812 def GetRecoveryInfo (request ,
17301813 target ,
@@ -2557,3 +2640,37 @@ def SubscribeCustomMessages(request,
25572640 lightning__pb2 .CustomMessage .FromString ,
25582641 options , channel_credentials ,
25592642 insecure , call_credentials , compression , wait_for_ready , timeout , metadata )
2643+
2644+ @staticmethod
2645+ def ListAliases (request ,
2646+ target ,
2647+ options = (),
2648+ channel_credentials = None ,
2649+ call_credentials = None ,
2650+ insecure = False ,
2651+ compression = None ,
2652+ wait_for_ready = None ,
2653+ timeout = None ,
2654+ metadata = None ):
2655+ return grpc .experimental .unary_unary (request , target , '/lnrpc.Lightning/ListAliases' ,
2656+ lightning__pb2 .ListAliasesRequest .SerializeToString ,
2657+ lightning__pb2 .ListAliasesResponse .FromString ,
2658+ options , channel_credentials ,
2659+ insecure , call_credentials , compression , wait_for_ready , timeout , metadata )
2660+
2661+ @staticmethod
2662+ def LookupHtlcResolution (request ,
2663+ target ,
2664+ options = (),
2665+ channel_credentials = None ,
2666+ call_credentials = None ,
2667+ insecure = False ,
2668+ compression = None ,
2669+ wait_for_ready = None ,
2670+ timeout = None ,
2671+ metadata = None ):
2672+ return grpc .experimental .unary_unary (request , target , '/lnrpc.Lightning/LookupHtlcResolution' ,
2673+ lightning__pb2 .LookupHtlcResolutionRequest .SerializeToString ,
2674+ lightning__pb2 .LookupHtlcResolutionResponse .FromString ,
2675+ options , channel_credentials ,
2676+ insecure , call_credentials , compression , wait_for_ready , timeout , metadata )
0 commit comments