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

Function currency_chainmoves_wait

plugins/bkpr/bookkeeper.c:1875–1888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1873}
1874
1875static struct command_result *
1876currency_chainmoves_wait(struct command *auxcmd, void *unused)
1877{
1878 struct bkpr *bkpr = bkpr_of(auxcmd->plugin);
1879 struct out_req *req;
1880 req = jsonrpc_request_start(auxcmd, "wait",
1881 currency_chainmoves_wait_done,
1882 plugin_broken_cb,
1883 NULL);
1884 json_add_string(req->js, "subsystem", "chainmoves");
1885 json_add_string(req->js, "indexname", "created");
1886 json_add_u64(req->js, "nextvalue", bkpr->chainmoves_index+1);
1887 return send_outreq(req);
1888}
1889
1890static struct command_result *
1891currency_channelmoves_wait(struct command *auxcmd, void *unused)

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