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

Function waitblockheight_complete

lightningd/peer_control.c:2351–2360  ·  view source on GitHub ↗

Completes a pending waitblockheight. */

Source from the content-addressed store, hash-verified

2349};
2350/* Completes a pending waitblockheight. */
2351static struct command_result *
2352waitblockheight_complete(struct command *cmd,
2353 u32 block_height)
2354{
2355 struct json_stream *response;
2356
2357 response = json_stream_success(cmd);
2358 json_add_num(response, "blockheight", block_height);
2359 return command_success(cmd, response);
2360}
2361/* Called when command is destroyed without being resolved. */
2362static void
2363destroy_waitblockheight_waiter(struct waitblockheight_waiter *w)

Callers 2

json_waitblockheightFunction · 0.85

Calls 3

json_stream_successFunction · 0.70
command_successFunction · 0.70
json_add_numFunction · 0.50

Tested by

no test coverage detected