We refresh scb from both channel_state_changed notification and on_commitment_revocation hook. Both have to be terminated differently. */
| 531 | on_commitment_revocation hook. Both have to be terminated |
| 532 | differently. */ |
| 533 | static struct command_result *notification_or_hook_done(struct command *cmd) |
| 534 | { |
| 535 | if (cmd->type == COMMAND_TYPE_NOTIFICATION) |
| 536 | return notification_handled(cmd); |
| 537 | assert(cmd->type == COMMAND_TYPE_HOOK); |
| 538 | return command_hook_success(cmd); |
| 539 | } |
| 540 | |
| 541 | static struct command_result *after_send_scb_single(struct command *cmd, |
| 542 | const char *method, |
no test coverage detected