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

Method wait_send_pay

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

Source from the content-addressed store, hash-verified

1300 }
1301
1302 async fn wait_send_pay(
1303 &self,
1304 request: tonic::Request<pb::WaitsendpayRequest>,
1305 ) -> Result<tonic::Response<pb::WaitsendpayResponse>, tonic::Status> {
1306 let req = request.into_inner();
1307 let req: requests::WaitsendpayRequest = req.try_into()?;
1308 debug!("Client asked for wait_send_pay");
1309 trace!("wait_send_pay request: {:?}", req);
1310 let mut rpc = ClnRpc::new(&self.rpc_path)
1311 .await
1312 .map_err(|e| Status::new(Code::Internal, e.to_string()))?;
1313 let result = rpc.call(Request::WaitSendPay(req))
1314 .await
1315 .map_err(|e| Status::new(
1316 Code::Unknown,
1317 format!("Error calling method WaitSendPay: {:?}", e)))?;
1318 match result {
1319 Response::WaitSendPay(r) => {
1320 trace!("wait_send_pay response: {:?}", r);
1321 Ok(tonic::Response::new(r.into()))
1322 },
1323 r => Err(Status::new(
1324 Code::Internal,
1325 format!(
1326 "Unexpected result {:?} to method call WaitSendPay",
1327 r
1328 )
1329 )),
1330 }
1331
1332 }
1333
1334 async fn new_addr(
1335 &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