mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 14:24:09 +01:00
closingd: Tell gossipd when initiating a channel close
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
parent
9982e24a1c
commit
ea011b9e2b
1 changed files with 7 additions and 0 deletions
|
@ -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)));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue