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

Method funder_update

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

Source from the content-addressed store, hash-verified

2197 }
2198
2199 async fn funder_update(
2200 &self,
2201 request: tonic::Request<pb::FunderupdateRequest>,
2202 ) -> Result<tonic::Response<pb::FunderupdateResponse>, tonic::Status> {
2203 let req = request.into_inner();
2204 let req: requests::FunderupdateRequest = req.try_into()?;
2205 debug!("Client asked for funder_update");
2206 trace!("funder_update request: {:?}", req);
2207 let mut rpc = ClnRpc::new(&self.rpc_path)
2208 .await
2209 .map_err(|e| Status::new(Code::Internal, e.to_string()))?;
2210 let result = rpc.call(Request::FunderUpdate(req))
2211 .await
2212 .map_err(|e| Status::new(
2213 Code::Unknown,
2214 format!("Error calling method FunderUpdate: {:?}", e)))?;
2215 match result {
2216 Response::FunderUpdate(r) => {
2217 trace!("funder_update response: {:?}", r);
2218 Ok(tonic::Response::new(r.into()))
2219 },
2220 r => Err(Status::new(
2221 Code::Internal,
2222 format!(
2223 "Unexpected result {:?} to method call FunderUpdate",
2224 r
2225 )
2226 )),
2227 }
2228
2229 }
2230
2231 async fn get_route(
2232 &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