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

Function payment_sendonion_success

plugins/libplugin-pay.c:1537–1552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1535}
1536
1537static struct command_result *payment_sendonion_success(struct command *cmd,
1538 const char *buffer,
1539 const jsmntok_t *toks,
1540 struct payment *p)
1541{
1542 struct out_req *req;
1543 req = jsonrpc_request_start(p->plugin, NULL, "waitsendpay",
1544 payment_waitsendpay_finished,
1545 payment_waitsendpay_finished, p);
1546 json_add_sha256(req->js, "payment_hash", p->payment_hash);
1547 json_add_num(req->js, "partid", p->partid);
1548 json_add_u64(req->js, "groupid", p->groupid);
1549 send_outreq(p->plugin, req);
1550
1551 return command_still_pending(cmd);
1552}
1553
1554static struct command_result *payment_createonion_success(struct command *cmd,
1555 const char *buffer,

Callers

nothing calls this directly

Calls 5

send_outreqFunction · 0.70
command_still_pendingFunction · 0.70
json_add_sha256Function · 0.50
json_add_numFunction · 0.50
json_add_u64Function · 0.50

Tested by

no test coverage detected