| 594 | } |
| 595 | |
| 596 | static struct command_result *routehints_cb(struct payment *payment) |
| 597 | { |
| 598 | if (payment->payment_info.routehints == NULL) |
| 599 | return payment_continue(payment); |
| 600 | struct command *cmd = payment_command(payment); |
| 601 | assert(cmd); |
| 602 | struct out_req *req = jsonrpc_request_start( |
| 603 | cmd, "waitblockheight", routehints_done, |
| 604 | payment_rpc_failure, payment); |
| 605 | json_add_num(req->js, "blockheight", 0); |
| 606 | return send_outreq(req); |
| 607 | } |
| 608 | |
| 609 | REGISTER_PAYMENT_MODIFIER(routehints, routehints_cb); |
| 610 |
nothing calls this directly
no test coverage detected