| 1714 | } |
| 1715 | |
| 1716 | static 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 | |
| 1737 | static struct command_result *payment_createonion_success(struct command *cmd, |
| 1738 | const char *method, |
nothing calls this directly
no test coverage detected