MCPcopy Create free account
hub / github.com/ElementsProject/lightning / currency_channelmoves_wait

Function currency_channelmoves_wait

plugins/bkpr/bookkeeper.c:1890–1903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1888}
1889
1890static struct command_result *
1891currency_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. */
1906static void start_waiting_for_currency(struct bkpr *bkpr, struct command *cmd)

Callers 1

Calls 4

json_add_u64Function · 0.85
bkpr_ofFunction · 0.70
json_add_stringFunction · 0.50
send_outreqFunction · 0.50

Tested by

no test coverage detected