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

Function payment_sendonion_success

plugins/libplugin-pay.c:1716–1735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1714}
1715
1716static struct command_result *payment_sendonion_success(struct command *cmd,
1717 const char *method,
1718 const char *buffer,
1719 const jsmntok_t *toks,
1720 struct payment *p)
1721{
1722 struct out_req *req;
1723 struct payment *root = payment_root(p);
1724
1725 if (p->invstring)
1726 root->invstring_used = true;
1727
1728 req = jsonrpc_request_start(payment_cmd(p), "waitsendpay",
1729 payment_waitsendpay_finished,
1730 payment_waitsendpay_finished, p);
1731 json_add_sha256(req->js, "payment_hash", p->payment_hash);
1732 json_add_num(req->js, "partid", p->partid);
1733 json_add_u64(req->js, "groupid", p->groupid);
1734 return send_outreq(req);
1735}
1736
1737static struct command_result *payment_createonion_success(struct command *cmd,
1738 const char *method,

Callers

nothing calls this directly

Calls 6

payment_rootFunction · 0.85
payment_cmdFunction · 0.85
json_add_sha256Function · 0.85
json_add_numFunction · 0.85
json_add_u64Function · 0.85
send_outreqFunction · 0.70

Tested by

no test coverage detected