| 3517 | AUTODATA(json_command, &waitblockheight_command); |
| 3518 | |
| 3519 | static bool channel_state_can_setchannel(enum channel_state state) |
| 3520 | { |
| 3521 | switch (state) { |
| 3522 | case CHANNELD_NORMAL: |
| 3523 | case CHANNELD_AWAITING_SPLICE: |
| 3524 | case CHANNELD_AWAITING_LOCKIN: |
| 3525 | case DUALOPEND_AWAITING_LOCKIN: |
| 3526 | return true; |
| 3527 | case DUALOPEND_OPEN_INIT: |
| 3528 | case DUALOPEND_OPEN_COMMIT_READY: |
| 3529 | case DUALOPEND_OPEN_COMMITTED: |
| 3530 | case CLOSINGD_SIGEXCHANGE: |
| 3531 | case CHANNELD_SHUTTING_DOWN: |
| 3532 | case CLOSINGD_COMPLETE: |
| 3533 | case AWAITING_UNILATERAL: |
| 3534 | case FUNDING_SPEND_SEEN: |
| 3535 | case ONCHAIN: |
| 3536 | case CLOSED: |
| 3537 | return false; |
| 3538 | } |
| 3539 | abort(); |
| 3540 | } |
| 3541 | |
| 3542 | static struct command_result *param_channel_or_all(struct command *cmd, |
| 3543 | const char *name, |
no test coverage detected