| 1535 | } |
| 1536 | |
| 1537 | static 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 | |
| 1554 | static struct command_result *payment_createonion_success(struct command *cmd, |
| 1555 | const char *buffer, |
nothing calls this directly
no test coverage detected