Completes a pending waitblockheight. */
| 3635 | }; |
| 3636 | /* Completes a pending waitblockheight. */ |
| 3637 | static struct command_result * |
| 3638 | waitblockheight_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. */ |
| 3648 | static void |
| 3649 | destroy_waitblockheight_waiter(struct waitblockheight_waiter *w) |
no test coverage detected