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

Function payee_incoming_limit_step_cb

plugins/libplugin-pay.c:3887–3903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3885}
3886
3887static void payee_incoming_limit_step_cb(void *d UNUSED, struct payment *p)
3888{
3889 /* Only operate at the initialization of te root payment.
3890 * Also, no point operating if payment does not support MPP anyway.
3891 */
3892 if (p->parent || p->step != PAYMENT_STEP_INITIALIZED
3893 || !payment_supports_mpp(p))
3894 return payment_continue(p);
3895
3896 /* Get information on the destination. */
3897 struct out_req *req;
3898 req = jsonrpc_request_start(p->plugin, NULL, "listchannels",
3899 &payee_incoming_limit_count,
3900 &payment_rpc_failure, p);
3901 json_add_node_id(req->js, "source", p->destination);
3902 (void) send_outreq(p->plugin, req);
3903}
3904
3905REGISTER_PAYMENT_MODIFIER(payee_incoming_limit, void *, NULL,
3906 payee_incoming_limit_step_cb);

Callers

nothing calls this directly

Calls 4

payment_supports_mppFunction · 0.85
payment_continueFunction · 0.85
send_outreqFunction · 0.70
json_add_node_idFunction · 0.50

Tested by

no test coverage detected