From ea011b9e2beb259c6fb575e8e86ad3020850e707 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Sat, 26 May 2018 15:47:02 +0200 Subject: [PATCH] closingd: Tell gossipd when initiating a channel close Signed-off-by: Christian Decker --- lightningd/closing_control.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lightningd/closing_control.c b/lightningd/closing_control.c index 861579ade..dc94530a7 100644 --- a/lightningd/closing_control.c +++ b/lightningd/closing_control.c @@ -213,4 +213,11 @@ void peer_start_closingd(struct channel *channel, /* We don't expect a response: it will give us feedback on * signatures sent and received, then closing_complete. */ subd_send_msg(channel->owner, take(initmsg)); + + /* Now tell gossipd that we're closing and that neither direction should + * be used. */ + if (channel->scid) + subd_send_msg(channel->peer->ld->gossip, + take(towire_gossip_local_channel_close( + tmpctx, channel->scid))); }