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

Method splice_signed

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

Source from the content-addressed store, hash-verified

3096 }
3097
3098 async fn splice_signed(
3099 &self,
3100 request: tonic::Request<pb::SpliceSignedRequest>,
3101 ) -> Result<tonic::Response<pb::SpliceSignedResponse>, tonic::Status> {
3102 let req = request.into_inner();
3103 let req: requests::SpliceSignedRequest = req.try_into()?;
3104 debug!("Client asked for splice_signed");
3105 trace!("splice_signed request: {:?}", req);
3106 let mut rpc = ClnRpc::new(&self.rpc_path)
3107 .await
3108 .map_err(|e| Status::new(Code::Internal, e.to_string()))?;
3109 let result = rpc.call(Request::SpliceSigned(req))
3110 .await
3111 .map_err(|e| Status::new(
3112 Code::Unknown,
3113 format!("Error calling method SpliceSigned: {:?}", e)))?;
3114 match result {
3115 Response::SpliceSigned(r) => {
3116 trace!("splice_signed response: {:?}", r);
3117 Ok(tonic::Response::new(r.into()))
3118 },
3119 r => Err(Status::new(
3120 Code::Internal,
3121 format!(
3122 "Unexpected result {:?} to method call SpliceSigned",
3123 r
3124 )
3125 )),
3126 }
3127
3128 }
3129
3130 async fn splice_update(
3131 &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