Skip to content

Commit

Permalink
clear onchaind subd in channel on error
Browse files Browse the repository at this point in the history
When the subdaemon closes unexpectedly, clear the reference and
update the channel billboard with the description
  • Loading branch information
jBarz authored and cdecker committed Mar 4, 2018
1 parent 9b3e8f0 commit 31b9b6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lightningd/onchain_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ static void onchain_error(struct channel *channel,
{
/* FIXME: re-launch? */
log_broken(channel->log, "%s", desc);
channel_set_billboard(channel, true, desc);
channel_set_owner(channel, NULL);
}

/* With a reorg, this can get called multiple times; each time we'll kill
Expand Down

0 comments on commit 31b9b6b

Please sign in to comment.