| 1698 | } |
| 1699 | |
| 1700 | static 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 | |
| 1721 | static struct command_result *payment_createonion_success(struct command *cmd, |
| 1722 | const char *method, |
nothing calls this directly
no test coverage detected