mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 08:34:20 +01:00
setchannelfee: allow dualopend's "awaiting" state to be valid also
This commit is contained in:
committed by
Christian Decker
parent
79c01c1386
commit
0c520850b0
@@ -1969,7 +1969,8 @@ static struct command_result *json_setchannelfee(struct command *cmd,
|
|||||||
|
|
||||||
if (channel
|
if (channel
|
||||||
&& channel->state != CHANNELD_NORMAL
|
&& channel->state != CHANNELD_NORMAL
|
||||||
&& channel->state != CHANNELD_AWAITING_LOCKIN)
|
&& channel->state != CHANNELD_AWAITING_LOCKIN
|
||||||
|
&& channel->state != DUALOPEND_AWAITING_LOCKIN)
|
||||||
return command_fail(cmd, LIGHTNINGD,
|
return command_fail(cmd, LIGHTNINGD,
|
||||||
"Channel is in state %s", channel_state_name(channel));
|
"Channel is in state %s", channel_state_name(channel));
|
||||||
|
|
||||||
@@ -1986,7 +1987,8 @@ static struct command_result *json_setchannelfee(struct command *cmd,
|
|||||||
if (!channel)
|
if (!channel)
|
||||||
continue;
|
continue;
|
||||||
if (channel->state != CHANNELD_NORMAL &&
|
if (channel->state != CHANNELD_NORMAL &&
|
||||||
channel->state != CHANNELD_AWAITING_LOCKIN)
|
channel->state != CHANNELD_AWAITING_LOCKIN &&
|
||||||
|
channel->state != DUALOPEND_AWAITING_LOCKIN)
|
||||||
continue;
|
continue;
|
||||||
set_channel_fees(cmd, channel, *base, *ppm, response);
|
set_channel_fees(cmd, channel, *base, *ppm, response);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user