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

Method splice_update

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

Source from the content-addressed store, hash-verified

3128 }
3129
3130 async fn splice_update(
3131 &self,
3132 request: tonic::Request<pb::SpliceUpdateRequest>,
3133 ) -> Result<tonic::Response<pb::SpliceUpdateResponse>, tonic::Status> {
3134 let req = request.into_inner();
3135 let req: requests::SpliceUpdateRequest = req.try_into()?;
3136 debug!("Client asked for splice_update");
3137 trace!("splice_update request: {:?}", req);
3138 let mut rpc = ClnRpc::new(&self.rpc_path)
3139 .await
3140 .map_err(|e| Status::new(Code::Internal, e.to_string()))?;
3141 let result = rpc.call(Request::SpliceUpdate(req))
3142 .await
3143 .map_err(|e| Status::new(
3144 Code::Unknown,
3145 format!("Error calling method SpliceUpdate: {:?}", e)))?;
3146 match result {
3147 Response::SpliceUpdate(r) => {
3148 trace!("splice_update response: {:?}", r);
3149 Ok(tonic::Response::new(r.into()))
3150 },
3151 r => Err(Status::new(
3152 Code::Internal,
3153 format!(
3154 "Unexpected result {:?} to method call SpliceUpdate",
3155 r
3156 )
3157 )),
3158 }
3159
3160 }
3161
3162 async fn splice_in(
3163 &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