Skip to content

Commit

Permalink
Plugins/chanbackup: Add SCB on CHANNELD_AWAITING_LOCKING stage
Browse files Browse the repository at this point in the history
  • Loading branch information
adi2011 committed Sep 1, 2022
1 parent 153f602 commit a031bad
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions plugins/chanbackup.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,14 +411,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,
Expand Down

0 comments on commit a031bad

Please sign in to comment.