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

Function waitblockheight_complete

lightningd/peer_control.c:3429–3438  ·  view source on GitHub ↗

Completes a pending waitblockheight. */

Source from the content-addressed store, hash-verified

3427};
3428/* Completes a pending waitblockheight. */
3429static struct command_result *
3430waitblockheight_complete(struct command *cmd,
3431 u32 block_height)
3432{
3433 struct json_stream *response;
3434
3435 response = json_stream_success(cmd);
3436 json_add_num(response, "blockheight", block_height);
3437 return command_success(cmd, response);
3438}
3439/* Called when command is destroyed without being resolved. */
3440static void
3441destroy_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