| 805 | } |
| 806 | |
| 807 | static struct command_result *send_routes_cb(struct payment *payment) |
| 808 | { |
| 809 | struct command *cmd; |
| 810 | struct out_req *req; |
| 811 | assert(payment); |
| 812 | cmd = payment_command(payment); |
| 813 | if (!cmd) |
| 814 | plugin_err(pay_plugin->plugin, |
| 815 | "send_routes_pay_mod: cannot get a valid cmd."); |
| 816 | req = |
| 817 | jsonrpc_request_start(cmd, "waitblockheight", waitblockheight_done, |
| 818 | payment_rpc_failure, payment); |
| 819 | json_add_num(req->js, "blockheight", 0); |
| 820 | return send_outreq(req); |
| 821 | } |
| 822 | |
| 823 | REGISTER_PAYMENT_MODIFIER(send_routes, send_routes_cb); |
| 824 |
nothing calls this directly
no test coverage detected