From e3a09ddac926254ca253117ae4b06f117ee161ed Mon Sep 17 00:00:00 2001 From: John Barboza Date: Sat, 3 Mar 2018 13:59:07 -0500 Subject: [PATCH] clear onchaind subd in channel on error When the subdaemon closes unexpectedly, clear the reference and update the channel billboard with the description --- lightningd/onchain_control.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lightningd/onchain_control.c b/lightningd/onchain_control.c index 3ec085604703..e4d27180d7da 100644 --- a/lightningd/onchain_control.c +++ b/lightningd/onchain_control.c @@ -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