Completes a pending waitblockheight. */
| 2349 | }; |
| 2350 | /* Completes a pending waitblockheight. */ |
| 2351 | static struct command_result * |
| 2352 | waitblockheight_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. */ |
| 2362 | static void |
| 2363 | destroy_waitblockheight_waiter(struct waitblockheight_waiter *w) |
no test coverage detected