| 1888 | } |
| 1889 | |
| 1890 | static struct command_result * |
| 1891 | currency_channelmoves_wait(struct command *auxcmd, void *unused) |
| 1892 | { |
| 1893 | struct bkpr *bkpr = bkpr_of(auxcmd->plugin); |
| 1894 | struct out_req *req; |
| 1895 | req = jsonrpc_request_start(auxcmd, "wait", |
| 1896 | currency_channelmoves_wait_done, |
| 1897 | plugin_broken_cb, |
| 1898 | NULL); |
| 1899 | json_add_string(req->js, "subsystem", "channelmoves"); |
| 1900 | json_add_string(req->js, "indexname", "created"); |
| 1901 | json_add_u64(req->js, "nextvalue", bkpr->channelmoves_index+1); |
| 1902 | return send_outreq(req); |
| 1903 | } |
| 1904 | |
| 1905 | /* If we're supposed to do currency conversions, we refresh all the time. */ |
| 1906 | static void start_waiting_for_currency(struct bkpr *bkpr, struct command *cmd) |
no test coverage detected