df: there's only one state that we should be in for a dualopend

and that's DUALOPEND_AWAITING_LOCKIN; we'll have moved over to
subd type 'channeld' if we're in CHANNELD_NORMAL
This commit is contained in:
niftynei 2020-12-10 14:05:52 -06:00 committed by Christian Decker
parent 3e9f60011e
commit 5d388b3128

View File

@ -633,8 +633,7 @@ bool channel_tell_depth(struct lightningd *ld,
}
if (streq(channel->owner->name, "dualopend")) {
if (channel->state != DUALOPEND_AWAITING_LOCKIN
&& channel->state != CHANNELD_NORMAL) {
if (channel->state != DUALOPEND_AWAITING_LOCKIN) {
log_debug(channel->log,
"Funding tx %s confirmed, but peer in"
" state %s",