Completes a pending waitblockheight. */
| 3705 | }; |
| 3706 | /* Completes a pending waitblockheight. */ |
| 3707 | static struct command_result * |
| 3708 | waitblockheight_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. */ |
| 3718 | static void |
| 3719 | destroy_waitblockheight_waiter(struct waitblockheight_waiter *w) |
no test coverage detected