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

Function routehints_cb

plugins/renepay/mods.c:596–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595
596static struct command_result *routehints_cb(struct payment *payment)
597{
598 if (payment->payment_info.routehints == NULL)
599 return payment_continue(payment);
600 struct command *cmd = payment_command(payment);
601 assert(cmd);
602 struct out_req *req = jsonrpc_request_start(
603 cmd, "waitblockheight", routehints_done,
604 payment_rpc_failure, payment);
605 json_add_num(req->js, "blockheight", 0);
606 return send_outreq(req);
607}
608
609REGISTER_PAYMENT_MODIFIER(routehints, routehints_cb);
610

Callers

nothing calls this directly

Calls 4

payment_commandFunction · 0.85
json_add_numFunction · 0.85
payment_continueFunction · 0.70
send_outreqFunction · 0.50

Tested by

no test coverage detected