| 161 | } |
| 162 | |
| 163 | struct command_result *bwatch_send_block_processed(struct command *cmd) |
| 164 | { |
| 165 | struct bwatch *bwatch = bwatch_of(cmd->plugin); |
| 166 | struct out_req *req; |
| 167 | |
| 168 | req = jsonrpc_request_start(cmd, "block_processed", |
| 169 | block_processed_ack, block_processed_err, |
| 170 | NULL); |
| 171 | json_add_u32(req->js, "blockheight", bwatch->current_height); |
| 172 | json_add_string(req->js, "blockhash", |
| 173 | fmt_bitcoin_blkid(tmpctx, &bwatch->current_blockhash)); |
| 174 | return send_outreq(req); |
| 175 | } |
| 176 | |
| 177 | /* |
| 178 | * ============================================================================ |
nothing calls this directly
no test coverage detected