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

Function waitblockheight_complete

lightningd/peer_control.c:3707–3716  ·  view source on GitHub ↗

Completes a pending waitblockheight. */

Source from the content-addressed store, hash-verified

3705};
3706/* Completes a pending waitblockheight. */
3707static struct command_result *
3708waitblockheight_complete(struct command *cmd,
3709 u32 block_height)
3710{
3711 struct json_stream *response;
3712
3713 response = json_stream_success(cmd);
3714 json_add_num(response, "blockheight", block_height);
3715 return command_success(cmd, response);
3716}
3717/* Called when command is destroyed without being resolved. */
3718static void
3719destroy_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