Setchannel request is provided

This commit is contained in:
Justin Litchfield
2022-09-15 10:48:05 -05:00
committed by Christian Decker
parent 6324980484
commit 51e2433087
10 changed files with 291 additions and 11 deletions

View File

@@ -234,6 +234,11 @@ class NodeStub(object):
request_serializer=node__pb2.PingRequest.SerializeToString,
response_deserializer=node__pb2.PingResponse.FromString,
)
self.SetChannel = channel.unary_unary(
'/cln.Node/SetChannel',
request_serializer=node__pb2.SetchannelRequest.SerializeToString,
response_deserializer=node__pb2.SetchannelResponse.FromString,
)
self.SignMessage = channel.unary_unary(
'/cln.Node/SignMessage',
request_serializer=node__pb2.SignmessageRequest.SerializeToString,
@@ -513,6 +518,12 @@ class NodeServicer(object):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def SetChannel(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def SignMessage(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
@@ -748,6 +759,11 @@ def add_NodeServicer_to_server(servicer, server):
request_deserializer=node__pb2.PingRequest.FromString,
response_serializer=node__pb2.PingResponse.SerializeToString,
),
'SetChannel': grpc.unary_unary_rpc_method_handler(
servicer.SetChannel,
request_deserializer=node__pb2.SetchannelRequest.FromString,
response_serializer=node__pb2.SetchannelResponse.SerializeToString,
),
'SignMessage': grpc.unary_unary_rpc_method_handler(
servicer.SignMessage,
request_deserializer=node__pb2.SignmessageRequest.FromString,
@@ -1516,6 +1532,23 @@ class Node(object):
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def SetChannel(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/cln.Node/SetChannel',
node__pb2.SetchannelRequest.SerializeToString,
node__pb2.SetchannelResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def SignMessage(request,
target,