mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
clear onchaind subd in channel on error
When the subdaemon closes unexpectedly, clear the reference and update the channel billboard with the description
This commit is contained in:
committed by
Christian Decker
parent
9b3e8f0bd3
commit
31b9b6bc1c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user