mfc: consolidate to a single FAILED state

This commit is contained in:
niftynei
2020-10-22 13:56:25 -05:00
committed by neil saitug
parent 991ae65e9e
commit a31b078721
3 changed files with 32 additions and 39 deletions

View File

@@ -926,9 +926,9 @@ after_openchannel_init(struct multifundchannel_command *mfc)
dest = &mfc->destinations[i];
assert(dest->state == MULTIFUNDCHANNEL_STARTED
|| dest->state == MULTIFUNDCHANNEL_START_FAILED);
|| dest->state == MULTIFUNDCHANNEL_FAILED);
if (dest->state != MULTIFUNDCHANNEL_START_FAILED)
if (dest->state != MULTIFUNDCHANNEL_FAILED)
continue;
/* One of them failed, oh no. */