Finish a rescan chain: RPC commands get a JSON result; aux/timer * commands just terminate. */
| 351 | /* Finish a rescan chain: RPC commands get a JSON result; aux/timer |
| 352 | * commands just terminate. */ |
| 353 | static struct command_result *rescan_complete(struct command *cmd) |
| 354 | { |
| 355 | switch (cmd->type) { |
| 356 | case COMMAND_TYPE_NORMAL: |
| 357 | case COMMAND_TYPE_HOOK: |
| 358 | return command_success(cmd, json_out_obj(cmd, NULL, NULL)); |
| 359 | case COMMAND_TYPE_AUX: |
| 360 | return aux_command_done(cmd); |
| 361 | case COMMAND_TYPE_NOTIFICATION: |
| 362 | case COMMAND_TYPE_TIMER: |
| 363 | case COMMAND_TYPE_CHECK: |
| 364 | case COMMAND_TYPE_USAGE_ONLY: |
| 365 | break; |
| 366 | } |
| 367 | abort(); |
| 368 | } |
| 369 | |
| 370 | /* getrawblockbyheight callback for one block of a rescan: process the |
| 371 | * block, then either fetch the next or finish. */ |
no test coverage detected