From 01cafe478befbf92eaed45a0401653848637a360 Mon Sep 17 00:00:00 2001 From: adi2011 Date: Thu, 2 Feb 2023 20:31:25 +1030 Subject: [PATCH] Plugins/chanbackup: Add SCB on CHANNELD_AWAITING_LOCKING stage --- plugins/chanbackup.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/plugins/chanbackup.c b/plugins/chanbackup.c index 67f7ba150..4bb51a603 100644 --- a/plugins/chanbackup.c +++ b/plugins/chanbackup.c @@ -338,14 +338,9 @@ static struct command_result *json_state_changed(struct command *cmd, "channel_state_changed"), *statetok = json_get_member(buf, notiftok, "new_state"); - /* FIXME: I wanted to update the file on CHANNELD_AWAITING_LOCKIN, - * But I don't get update for it, maybe because there is - * no previous_state, also apparently `channel_opened` gets published - * when *peer* funded a channel with us? - * So, is their no way to get a notif on CHANNELD_AWAITING_LOCKIN? */ if (json_tok_streq(buf, statetok, "CLOSED") || - json_tok_streq(buf, statetok, "CHANNELD_NORMAL")) { - + json_tok_streq(buf, statetok, "CHANNELD_AWAITING_LOCKIN") || + json_tok_streq(buf, statetok, "DUALOPENED_AWAITING_LOCKIN")) { struct out_req *req; req = jsonrpc_request_start(cmd->plugin, cmd,