closingd: retransmit shutdown on reconnect.

The spec says so, and it's right: with the right pattern of packet loss
(thanks Travis!) the other end can still be in channeld, waiting for our
`shutdown` message.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-10-29 14:07:11 +10:30
committed by Christian Decker
parent d4f164eb39
commit 1935614979
3 changed files with 22 additions and 5 deletions

View File

@@ -236,7 +236,9 @@ void peer_start_closingd(struct channel *channel,
channel->next_index[LOCAL],
channel->next_index[REMOTE],
num_revocations,
channel_reestablish);
channel_reestablish,
p2wpkh_for_keyidx(tmpctx, ld,
channel->final_key_idx));
/* We don't expect a response: it will give us feedback on
* signatures sent and received, then closing_complete. */