Completes a pending waitblockheight. */
| 3427 | }; |
| 3428 | /* Completes a pending waitblockheight. */ |
| 3429 | static struct command_result * |
| 3430 | waitblockheight_complete(struct command *cmd, |
| 3431 | u32 block_height) |
| 3432 | { |
| 3433 | struct json_stream *response; |
| 3434 | |
| 3435 | response = json_stream_success(cmd); |
| 3436 | json_add_num(response, "blockheight", block_height); |
| 3437 | return command_success(cmd, response); |
| 3438 | } |
| 3439 | /* Called when command is destroyed without being resolved. */ |
| 3440 | static void |
| 3441 | destroy_waitblockheight_waiter(struct waitblockheight_waiter *w) |
no test coverage detected