From 31b9b6bc1c51f5bf8447d3814afa1da4ad7de01d 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 3ec085604..e4d27180d 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