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

Function waitblockheight_complete

lightningd/peer_control.c:3637–3646  ·  view source on GitHub ↗

Completes a pending waitblockheight. */

Source from the content-addressed store, hash-verified

3635};
3636/* Completes a pending waitblockheight. */
3637static struct command_result *
3638waitblockheight_complete(struct command *cmd,
3639 u32 block_height)
3640{
3641 struct json_stream *response;
3642
3643 response = json_stream_success(cmd);
3644 json_add_num(response, "blockheight", block_height);
3645 return command_success(cmd, response);
3646}
3647/* Called when command is destroyed without being resolved. */
3648static void
3649destroy_waitblockheight_waiter(struct waitblockheight_waiter *w)

Callers 2

json_waitblockheightFunction · 0.85

Calls 3

json_add_numFunction · 0.85
json_stream_successFunction · 0.70
command_successFunction · 0.70

Tested by

no test coverage detected