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

Function payment_sendonion_success

plugins/libplugin-pay.c:1700–1719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1698}
1699
1700static struct command_result *payment_sendonion_success(struct command *cmd,
1701 const char *method,
1702 const char *buffer,
1703 const jsmntok_t *toks,
1704 struct payment *p)
1705{
1706 struct out_req *req;
1707 struct payment *root = payment_root(p);
1708
1709 if (p->invstring)
1710 root->invstring_used = true;
1711
1712 req = jsonrpc_request_start(payment_cmd(p), "waitsendpay",
1713 payment_waitsendpay_finished,
1714 payment_waitsendpay_finished, p);
1715 json_add_sha256(req->js, "payment_hash", p->payment_hash);
1716 json_add_num(req->js, "partid", p->partid);
1717 json_add_u64(req->js, "groupid", p->groupid);
1718 return send_outreq(req);
1719}
1720
1721static struct command_result *payment_createonion_success(struct command *cmd,
1722 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