From 9430a455ffd8ded317e619837a947c308e88d971 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 26 Apr 2018 14:21:01 +0930 Subject: [PATCH] closing: don't go into temporary failure because we completed negotiation. It only lasts until the next block, but it's weird. Signed-off-by: Rusty Russell --- lightningd/closing_control.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lightningd/closing_control.c b/lightningd/closing_control.c index ed9357373..979dfbcd2 100644 --- a/lightningd/closing_control.c +++ b/lightningd/closing_control.c @@ -90,6 +90,11 @@ static void peer_closing_complete(struct channel *channel, const u8 *msg) return; } + /* Don't report spurious failure when closingd exits. */ + channel_set_owner(channel, NULL); + /* Clear any transient negotiation messages */ + channel_set_billboard(channel, false, NULL); + /* Retransmission only, ignore closing. */ if (channel->state == CLOSINGD_COMPLETE) return;