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

Method dev_splice

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

Source from the content-addressed store, hash-verified

3224 }
3225
3226 async fn dev_splice(
3227 &self,
3228 request: tonic::Request<pb::DevspliceRequest>,
3229 ) -> Result<tonic::Response<pb::DevspliceResponse>, tonic::Status> {
3230 let req = request.into_inner();
3231 let req: requests::DevspliceRequest = req.try_into()?;
3232 debug!("Client asked for dev_splice");
3233 trace!("dev_splice request: {:?}", req);
3234 let mut rpc = ClnRpc::new(&self.rpc_path)
3235 .await
3236 .map_err(|e| Status::new(Code::Internal, e.to_string()))?;
3237 let result = rpc.call(Request::DevSplice(req))
3238 .await
3239 .map_err(|e| Status::new(
3240 Code::Unknown,
3241 format!("Error calling method DevSplice: {:?}", e)))?;
3242 match result {
3243 Response::DevSplice(r) => {
3244 trace!("dev_splice response: {:?}", r);
3245 Ok(tonic::Response::new(r.into()))
3246 },
3247 r => Err(Status::new(
3248 Code::Internal,
3249 format!(
3250 "Unexpected result {:?} to method call DevSplice",
3251 r
3252 )
3253 )),
3254 }
3255
3256 }
3257
3258 async fn unreserve_inputs(
3259 &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