Plugins/chanbackup: Add SCB on CHANNELD_AWAITING_LOCKING stage

This commit is contained in:
adi2011
2023-02-02 20:31:25 +10:30
committed by Alex Myers
parent 33f0c4ec0b
commit 01cafe478b

View File

@@ -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,