(
&self,
request: tonic::Request<pb::SpliceSignedRequest>,
)
| 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, |
nothing calls this directly
no test coverage detected