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

Function direct_pay_cb

plugins/libplugin-pay.c:3283–3298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3281}
3282
3283static void direct_pay_cb(struct direct_pay_data *d, struct payment *p)
3284{
3285 struct out_req *req;
3286
3287/* Look up the direct channel only on root. */
3288 if (p->step != PAYMENT_STEP_INITIALIZED)
3289 return payment_continue(p);
3290
3291
3292
3293 req = jsonrpc_request_start(p->plugin, NULL, "listpeers",
3294 direct_pay_listpeers, direct_pay_listpeers,
3295 p);
3296 json_add_node_id(req->js, "id", p->destination);
3297 send_outreq(p->plugin, req);
3298}
3299
3300static struct direct_pay_data *direct_pay_init(struct payment *p)
3301{

Callers

nothing calls this directly

Calls 3

payment_continueFunction · 0.85
send_outreqFunction · 0.70
json_add_node_idFunction · 0.50

Tested by

no test coverage detected