Browse Source

clear onchaind subd in channel on error

When the subdaemon closes unexpectedly, clear the reference and
update the channel billboard with the description
ppa-0.6.1
John Barboza 7 years ago
committed by Christian Decker
parent
commit
31b9b6bc1c
  1. 2
      lightningd/onchain_control.c

2
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

Loading…
Cancel
Save