MCPcopy Create free account
hub / github.com/ElementsProject/lightning / open_channel_signed

Method open_channel_signed

cln-grpc/src/server.rs:2616–2646  ·  view source on GitHub ↗
(
        &self,
        request: tonic::Request<pb::OpenchannelSignedRequest>,
    )

Source from the content-addressed store, hash-verified

2614 }
2615
2616 async fn open_channel_signed(
2617 &self,
2618 request: tonic::Request<pb::OpenchannelSignedRequest>,
2619 ) -> Result<tonic::Response<pb::OpenchannelSignedResponse>, tonic::Status> {
2620 let req = request.into_inner();
2621 let req: requests::OpenchannelSignedRequest = req.try_into()?;
2622 debug!("Client asked for open_channel_signed");
2623 trace!("open_channel_signed request: {:?}", req);
2624 let mut rpc = ClnRpc::new(&self.rpc_path)
2625 .await
2626 .map_err(|e| Status::new(Code::Internal, e.to_string()))?;
2627 let result = rpc.call(Request::OpenChannelSigned(req))
2628 .await
2629 .map_err(|e| Status::new(
2630 Code::Unknown,
2631 format!("Error calling method OpenChannelSigned: {:?}", e)))?;
2632 match result {
2633 Response::OpenChannelSigned(r) => {
2634 trace!("open_channel_signed response: {:?}", r);
2635 Ok(tonic::Response::new(r.into()))
2636 },
2637 r => Err(Status::new(
2638 Code::Internal,
2639 format!(
2640 "Unexpected result {:?} to method call OpenChannelSigned",
2641 r
2642 )
2643 )),
2644 }
2645
2646 }
2647
2648 async fn open_channel_update(
2649 &self,

Callers

nothing calls this directly

Calls 3

into_innerMethod · 0.80
to_stringMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected