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

Method askrene_bias_node

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

Source from the content-addressed store, hash-verified

4408 }
4409
4410 async fn askrene_bias_node(
4411 &self,
4412 request: tonic::Request<pb::AskrenebiasnodeRequest>,
4413 ) -> Result<tonic::Response<pb::AskrenebiasnodeResponse>, tonic::Status> {
4414 let req = request.into_inner();
4415 let req: requests::AskrenebiasnodeRequest = req.into();
4416 debug!("Client asked for askrene_bias_node");
4417 trace!("askrene_bias_node request: {:?}", req);
4418 let mut rpc = ClnRpc::new(&self.rpc_path)
4419 .await
4420 .map_err(|e| Status::new(Code::Internal, e.to_string()))?;
4421 let result = rpc.call(Request::AskreneBiasNode(req))
4422 .await
4423 .map_err(|e| Status::new(
4424 Code::Unknown,
4425 format!("Error calling method AskreneBiasNode: {:?}", e)))?;
4426 match result {
4427 Response::AskreneBiasNode(r) => {
4428 trace!("askrene_bias_node response: {:?}", r);
4429 Ok(tonic::Response::new(r.into()))
4430 },
4431 r => Err(Status::new(
4432 Code::Internal,
4433 format!(
4434 "Unexpected result {:?} to method call AskreneBiasNode",
4435 r
4436 )
4437 )),
4438 }
4439
4440 }
4441
4442 async fn ask_rene_list_reservations(
4443 &self,

Callers 4

test_node_bias_rpcFunction · 0.80
test_node_bias_routesFunction · 0.80
test_downgrade_biasFunction · 0.80

Calls 3

into_innerMethod · 0.80
to_stringMethod · 0.45
callMethod · 0.45

Tested by 4

test_node_bias_rpcFunction · 0.64
test_node_bias_routesFunction · 0.64
test_downgrade_biasFunction · 0.64