From 0c520850b045cc2b987e47f7ce6fd2ebfaf512af Mon Sep 17 00:00:00 2001 From: niftynei Date: Mon, 30 Nov 2020 15:49:01 -0600 Subject: [PATCH] setchannelfee: allow dualopend's "awaiting" state to be valid also --- lightningd/peer_control.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lightningd/peer_control.c b/lightningd/peer_control.c index df6775297..a91a83ce4 100644 --- a/lightningd/peer_control.c +++ b/lightningd/peer_control.c @@ -1969,7 +1969,8 @@ static struct command_result *json_setchannelfee(struct command *cmd, if (channel && channel->state != CHANNELD_NORMAL - && channel->state != CHANNELD_AWAITING_LOCKIN) + && channel->state != CHANNELD_AWAITING_LOCKIN + && channel->state != DUALOPEND_AWAITING_LOCKIN) return command_fail(cmd, LIGHTNINGD, "Channel is in state %s", channel_state_name(channel)); @@ -1986,7 +1987,8 @@ static struct command_result *json_setchannelfee(struct command *cmd, if (!channel) continue; if (channel->state != CHANNELD_NORMAL && - channel->state != CHANNELD_AWAITING_LOCKIN) + channel->state != CHANNELD_AWAITING_LOCKIN && + channel->state != DUALOPEND_AWAITING_LOCKIN) continue; set_channel_fees(cmd, channel, *base, *ppm, response); }